Understand the Nullish coalescing operator coming in ES2020

added by JavaScript Kicks
12/17/2019 8:29:45 AM

328 Views

Learn the upcoming JavaScript operator which is in stage 3 proposal. ?? → Nullish coalescing operator. The nullish coalescing operator ??,is ashort-circuiting operator, like && and ||, which will return the righthand side operand of the if the lefthand side operand is null or undefined . Otherwise, it returns lefthand side operand.


0 comments