JS 2015 (ES6)
The 2015 edition introduced many foundations of modern JavaScript, including let, const, classes, and arrow functions. Learn the behaviour rather than just the edition name.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
const prices = [3, 5];
const doubled = prices.map(price => price * 2);
console.log(doubled);
What happens
The arrow callback produces [6,10].