JS: ECMAScript 2016
Array.prototype.includes
Improved version of Array.prototype.indexOf . Now can detect NaN and empty element in Sparse Array as undefined
Power operator: double asterisk **
easier syntax for
Math.pow(x, y)
console.log(3 ** 2 === 9); // true
Power assignment operator: double asterisk equal **=
let x = 3; x **= 2; console.log(x === 9);
JavaScript. ECMAScript New Features
- JS: ECMAScript New Features. 2015 to 2026
- JS: ECMAScript 2015
- JS: ECMAScript 2016
- JS: ECMAScript 2017
- JS: ECMAScript 2018
- JS: ECMAScript 2019
- JS: ECMAScript 2020
- JS: ECMAScript 2021
- JS: ECMAScript 2022
- JS: ECMAScript 2023
- JS: ECMAScript 2024
- JS: ECMAScript 2025
- JS: ECMAScript 2026
- JS: ECMAScript 2027