DEV Community

Cover image for Optional Chaining and Nullish Coalescing are coming to JavaScript

Optional Chaining and Nullish Coalescing are coming to JavaScript

Gábor Soós on November 13, 2019

Two long-awaited operators are coming to Javascript. They are both in the draft stage (stage 3) and are announced to be available in Chrome Canary....
Collapse
 
patricnox profile image
PatricNox

Yeeehaw, amazing!!
I love the optional chaining, haven't actually crossed it before.

Just imagine how handy it'll be in Vuejs development ✔️🎉🎉

Collapse
 
sonicoder profile image
Gábor Soós

No more if statements 🥳

Collapse
 
patferraggi profile image
Patricio Ferraggi

Love them, I use this ones in c# all day and I really miss them when I switch to JavaScript

Collapse
 
sonicoder profile image
Gábor Soós

You won't miss them now ;)

Collapse
 
adarshmadrecha profile image
Adarsh Madrecha

When Would be able to use it? I mean, in my VueJs project, when will we be able to start using it? Will we have to wait for Core-JS to support it and then we can start using it?

Collapse
 
alistaiiiir profile image
alistair smith

They will be shipped with Chrome 80+ and are already in Chrome Canary (which is currently 81)