DEV Community

Cover image for Javascript features you might not know in 2019-2020

Javascript features you might not know in 2019-2020

Deepak Gupta on September 25, 2019

Private Class field👇 Until ES6, we were not able to declare private properties directly. Yes there were ways like underscore convention ...
Collapse
 
ctrlsquid profile image
zach

Oh man, I'm absolutely stoked for Promise.allSettled and dynamic imports!

Collapse
 
dg92 profile image
Deepak Gupta

Me too :), you can try them in the chrome browser (version ≥76) or Node.js(version ≥11) CLI.

Collapse
 
dhkamp profile image
David Hölkeskamp

Excellent post, thank you!

Collapse
 
dg92 profile image
Deepak Gupta

Thank you! Glad you like it, feel free to share around.

Collapse
 
clarity89 profile image
Alex K. • Edited

Lot's of good news there :)

Btw in your bigInt example the output of max + 1 and max + 2 is different.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Well that about rounds it up. I do love the bigint and tolocalestring demo, it certainly illustrated the (imo) nicest API in JavaScript to date, intl ♥️.