Created
November 29, 2017 14:07
-
-
Save tomatohammado/b00ac6428559f4ee72280be34d11c498 to your computer and use it in GitHub Desktop.
experimenting with typeof and functions. Not sure if they were 'objects' or 'functions', and if it would be different for declarations vs expressions
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
| function func1 () { console.log('func1') } | |
| -> undefined | |
| var func2 = function () { console.log('func2') } | |
| -> undefined | |
| typeof func1 | |
| -> "function" | |
| typeof func2 | |
| -> "function" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment