Created
July 21, 2017 08:36
-
-
Save shaunwallace/1f4cae3251c196a77f78e8b32cd33792 to your computer and use it in GitHub Desktop.
Return values when using the typeof operator
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
typeof 'foo'; // "string" | |
typeof 42; // "number | |
typeof {}; // "object" | |
typeof true; // "boolean" | |
typeof null; // "object" | |
typeof undefined; // "undefined" | |
typeof () => {}; // "function" | |
typeof []; // "object" | |
typeof Symbol(); // "symbol" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment