| Feature | Example | Section |
|---|---|---|
| let, const, modules | import { f } from './f.js' | 6.2.4, 6.2.5 |
| Arrows, default and rest params | (a, b = 2, ...r) => a | 6.5.1, 6.5.2 |
| Destructuring and spread | const [a, ...b] = arr | 6.3.3, 6.13.6 |
| Classes and promises | class A extends B {} | 6.7, 6.6 |
| Iterators and generators | function* g() { yield 1; } | 6.16, 6.5.9 |
| Template literals, symbols | ` Hi ${name} ` | 6.12.2, 6.11 |
| Map, Set, typed arrays, Proxy | new Map([[1, 'a']]) | 6.15, 6.14, 6.21 |
MENU
ES2015
ECMAScript 2015 (ES6)