//Function to check type in JS.
function typeCheck(x) {
return Object.prototype.toString.call(x);
}
//Test Code:
var x;
var y = null;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Foo Bar</title> | |
| </head> | |
| <body> | |
| <h1>Foo Bar</h1> | |
| <a href=”/baz”>Baz</a> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .postTitle { | |
| color: #444; | |
| font-size: 24px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import style from './style/css'; | |
| function postTitle() { | |
| return <h1 className={style.postTitle}></h1>; | |
| } |