bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/JavaScript/Debugging, Projects, and Reference
JavaScript•Debugging, Projects, and Reference

ECMAScript 2018

New Features in JavaScript 2018

Feature

Description

Asynchronous Iteration

Allows the await keyword in for/of loops

Promise Finally

Schedules a function to be executed when a promise has been "fulfilled" or "rejected"

Array Rest Elements

Allows to destruct an array and collect the leftovers

Object Rest Properties

Allows to destruct an object and collect the leftovers

Shared Memory

Allows different parts of a program to access the same memory

New RegExp Features in 2018

Feature

Description

/s Allows the . (dot) metacharacter to match line terminators

\p{}

Matches character with a Unicode character property

(?<=y) (?<=y)x matches "x" if "x" is preceded by "y" (?<!y) (?<!y)x matches "x" if "x" is NOT preceded by "y" (?<name>) Captures text and names (labels) it

Browser Support

ECMAScript 2018 is supported in all modern browsers since

Jun 2020

Chrome

64

Edge

79

Firefox

78

Safari

12

Opera

51

Jan 2018

Jan 2020

Jun 2020

Sep 2018

Previous

ECMAScript 2019

Next

ECMAScript 2017