Created
November 11, 2017 13:34
-
-
Save aderaaij/20b6668f4c742a6c37c0c44381d3e108 to your computer and use it in GitHub Desktop.
Simle Arrow Function examples
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
const names = ['michelangelo', 'donatello', 'leonardo']; | |
const fullNames = names.map(name => `${name} turtle`); | |
console.log(fullNames); | |
const sayMyName = name => alert(`hi ${name}`) | |
sayMyName('Raphaello'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment