Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Latest commit

 

History

History
34 lines (34 loc) · 1.31 KB

File metadata and controls

34 lines (34 loc) · 1.31 KB

Basics of ES2015 - Webinar 1

  • let, const
    • Block-level scope using let
    • Environment per iteration - let and closures (extra demo)
    • How let differs from var when used in the global scope
  • Strings and Templating
    • Usage
    • Multi-line strings
    • Variable interpolation
    • Calling functions during interpolation
  • Object and Array Destructuring
    • Array destructuring
      • Syntax
      • Skipping items when destructuring
      • Separate declaration and initialization
    • Object destructuring
      • Syntax
      • Providing default values
      • Renaming variables
      • Renaming and providing defaults too
      • Destructuring arguments passed (and providing defaults) and return values
  • Arrow Functions
    • Expressions in RHS
    • Function body in RHS
    • Context of arrow functions (this)
    • Context of arrow functions within object methods
    • Context of arrow functions when used as event handlers
    • The arguments object of arrow functions
  • Default Parameters
    • Giving default value
    • Defaults evaluation at runtime
  • Iterators, Iterables
    • for..in vs for..of for Array, String (applies only to iterables, key vs value being returned, all enumerable properties vs only collection properties)
    • const instead of let or var for iterator variable