JS: ECMAScript 2017
New object methods
New string methods
Allow one trailing comma in syntax
now allow one trailing comma in object literals, function parameters, named imports, named exports.
before, it was allowed in array literal only.
// deno-fmt-ignore const xx = { a: 0, b: 0, }; console.log(xx); // { a: 0, b: 0 } // repeated trailing comma is syntax error const xx = { a: 0, b: 0, ,};
// deno-fmt-ignore function ff(x,) { return x + 1; } console.log(ff(3) === 4);
keywords: async, await
xtodoasynckeyword for functions andawaitkeyword.
Async functions improve the asynchronous programming experience by providing syntax for promise-returning functions.
Shared Memory and Atomics
Shared Memory and Atomics introduce a new memory model that allows multi-agent programs to communicate using atomic operations that ensure a well-defined execution order even on parallel CPUs.
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