/NSS-Node-ES6-Awesomeness

First exercise from NSS, first week of Node learning

Primary LanguageJavaScript

NSS-Node-ES6-Awesomeness

First exercise from NSS, first week of Node learning

Requirements

Create a file called cheer.js that performs a cheer, using a named passed to it. Use as many of these as you can, even if the code you write isn't as compact or 'efficient' as you would like. This is more about trying out some ES6 than being succinct.

  1. const and/or let
  2. Object literal shorthand
  3. Destructuring assignments
  4. Fat arrow function(s)
  5. Spread operator
  6. Template literals

Execute the file by typing node cheer.js inside the file's directory.

Expected:

$ node cheer.js
Give me a J!
Give me an O!
Give me an H!
Give me an N!
Give me a D!
Give me an O!
Give me an E!
What does that spell?
JOHN DOE!

Note: the 'a' vs. 'an'

Bonus

  • Delay each line by 1 second