DEV Community

Cover image for 10 New JavaScript Features in ES2020 That You Should Know

10 New JavaScript Features in ES2020 That You Should Know

Garvit Motwani on March 30, 2021

I am starting this new series called Tip Tuesday in which I will write an article which includes some tips & tricks every Tuesday. So please fo...
Collapse
 
omril321 profile image
Omri Lavi

Thanks for sharing!
I really wonder how Dynamic import works behind the scenes. Do you have some resources you can recommend?

Collapse
 
garvitmotwani profile image
Garvit Motwani

dev.to/nialljoemaher/dynamic-impor... I think this article can help you. Thanks For Reading!!

Collapse
 
1link profile image
1Link.Fun

Love 'globalThis' ~

Collapse
 
codemon profile image
Johnson awah Alfred

The import.meta has to be the most useless

Collapse
 
tujoworker profile image
Tobias HΓΈegh • Edited

Actually, it’s something that we will use more in future. It will be a good replacement for Node.js process.env == import.meta.env

Vite, the bundler, does use this already. Webpack will follow I think. At least v5 does not ship the process polyfill by default anymore.

Collapse
 
garvitmotwani profile image
Garvit Motwani

Yep It can be used in the future, it has scope

Collapse
 
garvitmotwani profile image
Garvit Motwani

Yep!

Collapse
 
warioneila86 profile image
Mario

Nullish coalescing & optional chaining are my favs! 😬

Collapse
 
garvitmotwani profile image
Garvit Motwani

They are useful in real world!

Collapse
 
akatsukilevi profile image
Akatsuki Levi

the export * one truly got me hyped

Collapse
 
afthabanees profile image
Afthab Anees

Nice

Collapse
 
tbecerrp profile image
tbecerrp

Great post!

Collapse
 
garvitmotwani profile image
Garvit Motwani

Thank You Very Much!!

Collapse
 
bestape profile image
Kyle MacLean Smith

I'm very happy about optional chaining!

Collapse
 
garvitmotwani profile image
Garvit Motwani

Me too

Collapse
 
patb23 profile image
patb23

freecodecamp.org/news/javascript-n... - found exactly same article..don't know if these were written by same author. of course, found this informative.