DEV Community

Cover image for ES2018 Features with simple examples

ES2018 Features with simple examples

Carlos Caballero on January 17, 2020

Introduction ES2018 aka ES9 is the version of ECMAScript corresponding to the year 2018. This version does not include as many new featu...
Collapse
 
daniel13rady profile image
Daniel Brady

Thanks for the overview!

@carlillo Can you tell me the editor you're using for creating your lovely example images? It looks so nice in this context.

Collapse
 
bauripalash profile image
Palash Bauri 👻

They are using this , carbon.now.sh

Collapse
 
clementdeb profile image
clementDeb

hello,
in the rest/spread properties, where the 'cars' const comes from ?

Collapse
 
daniel13rady profile image
Daniel Brady

That looks like a refactoring error the author made while preparing the example: I think cars is meant to be bananas (or vice versa). 🍌

Collapse
 
carlillo profile image
Carlos Caballero

Yes, It is. Today, I'm going to change the image.

Collapse
 
andresdotsh profile image
Andres Dotsh

Great article!
In the 'RegExp named capture groups' image, the destructuring example looks wrong, I think is { pear, apple } instead of { one, two }.

Collapse
 
carlillo profile image
Carlos Caballero

Yes, it is a wrong. I will change the image when I arrived to home

Collapse
 
nombrekeff profile image
Keff

RegExp named capture groups, are a really nice thing to have :)

Collapse
 
carlillo profile image
Carlos Caballero

Yes!! This feature is very useful!