ES2015 Examples

Each of these ES5 and ES2015 examples gives the same output.

let and const


arrow functions


rest and spread operator

template literals

The Babel tool can be used to convert ES2015 into ES5, the examples above can be seen here.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.