Skip to content

Instantly share code, notes, and snippets.

@StevenJL
Created January 23, 2016 23:49
Show Gist options
  • Save StevenJL/ffcfaaa4747143a15429 to your computer and use it in GitHub Desktop.
Save StevenJL/ffcfaaa4747143a15429 to your computer and use it in GitHub Desktop.
// note on new ES6 anonymous function syntax
// these two are equivalent
(function() { return 1+2;})() // returns 3
(()=>1+2)() // returns 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment