Last active
October 22, 2018 18:18
-
-
Save zeakd/271bd581ce9f9c1c2f8daf7e575b1d90 to your computer and use it in GitHub Desktop.
Examples for explaining arrow function
This file contains 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
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