Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

double question mark javascript

//Similar to || but only returns the right-hand operand if the left-hand is null or undefined
0 ?? "other" // 0
false ?? "other" // false
null ?? "other" // "other"
undefined ?? "other" // "other"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #double #question #mark #javascript
ADD COMMENT
Topic
Name
8+4 =