How nullish coalescing operator works '??'
Syntax
The nullish coalescing operator is written as two question marks ??
It was introduced very recently as part of ES2020.
How does it work?
firstValue ?? secondValue
It accepts two values and returns the secondValue if the firstValue is null ...
rakshith.hashnode.dev3 min read