Skip to content

Instantly share code, notes, and snippets.

@wlaurance
Created March 24, 2014 22:20
Show Gist options
  • Select an option

  • Save wlaurance/9750550 to your computer and use it in GitHub Desktop.

Select an option

Save wlaurance/9750550 to your computer and use it in GitHub Desktop.
Interesting REPL behavior
> function a(){ console.log("I'm function a") }
undefined
> a()
I'm function a
undefined
> a)(
I'm function a
@wlaurance
Copy link
Author

@wlaurance
Copy link
Author

@wlaurance
Copy link
Author

The statement becomes (a)()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment