Chapter 2 : Emerging JavaScript
If you haven't made the switch to the latest JavaScript syntax yet, now is a good time to get started.
Samples
Declaring Variables in ES6
const
let
template strings
Without Template Strings - Simple Concatenation (run it)
With Template Strings - Simple concatenation (run it)
Template Strings - Email (run it)
Template Strings - HTML (run it)
Default Parameters
Arrow functions
Regular Function (run it)
Arrow Function (run it)
Arrow Function - Multiple Args (run it)
Multiple Args - One Line (run it)
Arrow Functions with if statements ❌ (run it)
Arrow Functions with errors ❌ (run it)
setTimeout ❌ (run it)
setTimeout with .bind (run it)
setTimeout with Arrow Function (run it)
setTimeout with 'this' problem ❌ (run it)
Showing 'this' problem (run it)
Objects and Arrays
Destructuring Assignment
Destructuring Assignment (run it)
Destructuring with Arguments (run it)
Destructured Object Arguments (run it)
Destructuring Arrays (run it)
Destructuring with Comma Placeholders (run it)
Object Literal Enhancement
The Spread Operator
Spread Operator with Arrays (run it)
Array Destructuring with .reverse() (run it)
Spread Operator with Destructuring and .reverse() (run it)
Destructuring and the Spread Operator (run it)
Directions Functions (run it)
Spread Operator with Objects (run it)
Promises
ES6 Class Syntax
Last updated