Skip to content

Instantly share code, notes, and snippets.

@zeakd
Last active October 22, 2018 18:18
Show Gist options
  • Save zeakd/271bd581ce9f9c1c2f8daf7e575b1d90 to your computer and use it in GitHub Desktop.
Save zeakd/271bd581ce9f9c1c2f8daf7e575b1d90 to your computer and use it in GitHub Desktop.
Examples for explaining arrow function
var numbers = [1,2,3,4,5]
var squares = numbers.map(function (x) {
return x * x;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment