/workshop-es6

Primary LanguageJavaScript

Workshop ES6

installing and running the tests

npm install npm test

  • modules
    • import expect
    • export functions from index.js
  • arrow functions
    • refactor to the new syntax
  • maps and sets
    • use sets to dedupe arrays
  • rest parameters
    • better arguments
  • spread operator
    • add props to an object
  • default parameters
    • world as default parameter
  • template strings
    • better hello world
  • iterators and generators
  • scoped vars
  • destructuring
  • promises