ES6 Syntax
let & const
let
used on variable valuesconst
constant values
Arrow Functions
solves issues with this
keyword
1 | const myFunc = () => { |
Exports & Imports
1 | import * as bundled from './app.js'; |
Class
1 | class Human { |
Spread & Rest
- Spread: Used to split up array elements OR object properties
- Rest: Used to merge a list of function arguments into an array
1 | const numbers = [1, 2, 3] |
Destructuring
Easily extract array elements or object properties and store them in variables
1 | const numbers = [1, 2, 3] |
Primitive type & Reference type
1 | const num = 1; |
Array Functions
1 | const numbers = [1, 2, 3]; |