DEV Community

Discussion on: How to use the nullish coalescing operator (??) in Javascript

Collapse
 
arikaturika profile image
Arika O

Exactly. Only if what's on the left side is 'null or undefined, it returns the right side of the evaluation. I hope it helped.