0

Obviously these are two versions of JavaScript but a Google of ES9 does not pull up anything except this:

medium - es 2018 which gives practical uses of es 2018.

Is es - 2018 referring to ES8 or ES9?

Where can I find some info on practical uses of ES9?

jshint clearly shows that you can configure for ES8 or ES9 here - jshint - options - esversion

1 Answers1

1

ES6 = ES2015

ES7 = ES2016

ES8 = ES2017

ES9 = ES2018

A new specification comes out each year (since then), so ES9 is ES2018, which includes Promise.finally, object rest/spread, regex named capture groups, regex lookbehind, regex s (dotall) flag, and a few other things.

ECMAScript 2018 introduced support for asynchronous iteration via the AsyncIterator protocol and async generators. It also included four new regular expression features: the dotAll flag, named capture groups, Unicode property escapes, and look-behind assertions. Lastly it included rest parameter and spread operator support for object properties.

There are descriptions of ES2018 features all over:

https://www.google.com/search?q=es2018+features

Here's one link:

https://www.sitepoint.com/es2018-whats-new/

You can read the official specification for it here:

https://www.ecma-international.org/ecma-262/9.0/

Snow
  • 3,820
  • 3
  • 13
  • 39