You already know a lot about JS, we hope thanks to our blog as well, so it would be useful to be updated about the ES2018 new features.
The ninth edition of the ECMAScript standard, officially known as ECMAScript 2018 (or ES2018 for short), was released in June 2018. Starting with ES2016, new versions of ECMAScript specifications are released yearly rather than every several years and add fewer features than major editions used to.
These are new changes:
- The Rest/Spread Properties. This operator makes copying and merging arrays a lot simpler. Rather than calling the
slice() method, you could use the
while, and methods such as
forEach() for this purpose. To enable programmers to process the elements in a collection one at a time, ES2015 introduced the iterator interface.
finally() to the specification.
New RegExp Features. ES2018 adds four new features to the
Template Literal Revision. A tagged template comes in handy when you want to parse a template literal with a function.
Here you will find these new changes explained in details.
And don’t forget to take a look the list of JS frameworks worth learning in 2019.