Created
March 24, 2014 22:20
-
-
Save wlaurance/9750550 to your computer and use it in GitHub Desktop.
Interesting REPL behavior
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 a(){ console.log("I'm function a") } | |
| undefined | |
| > a() | |
| I'm function a | |
| undefined | |
| > a)( | |
| I'm function a |
Author
Author
The statement becomes (a)()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is solved thanks to @danmactough.
See https://twitter.com/danmactough/status/448224380037124096