Skip to content

Instantly share code, notes, and snippets.

@pfftdammitchris
Created September 8, 2019 18:38
Show Gist options
  • Save pfftdammitchris/8cb1267f7369c52498da9c63f2dda709 to your computer and use it in GitHub Desktop.
Save pfftdammitchris/8cb1267f7369c52498da9c63f2dda709 to your computer and use it in GitHub Desktop.
let greet = combineWords('wow!')
greet = greet('nice')
console.log(greet('jacket'))
console.log(greet('shoes'))
console.log(greet('eyes'))
console.log(greet('socks'))
console.log(greet('hat'))
console.log(greet('glasses'))
console.log(greet('finger nails'))
console.log(greet('PS3'))
console.log(greet('pet'))
/*
result:
"wow! nice jacket"
"wow! nice shoes"
"wow! nice eyes"
"wow! nice socks"
"wow! nice hat"
"wow! nice glasses"
"wow! nice finger nails"
"wow! nice PS3"
"wow! nice pet"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment