Created
June 3, 2017 17:29
-
-
Save RachelSa/cd76aa8190df3e187a250d0cfaf77f8d to your computer and use it in GitHub Desktop.
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
var exclaim = (string) => {return string + "!"} | |
var words = ["let's", "do", "this"] | |
console.log(words.map(exclaim)) | |
//[ 'let\'s!', 'do!', 'this!' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment