Nullish Coalescing Operator

GPTKB entity

Statements (14)
Predicate Object
gptkbp:instanceOf JavaScript operator
gptkbp:category gptkb:programming_language
JavaScript syntax
gptkbp:distinctFrom Logical OR operator returns right-hand operand if left-hand operand is falsy
gptkbp:example let x = a ?? b;
https://www.w3.org/2000/01/rdf-schema#label Nullish Coalescing Operator
gptkbp:introducedIn gptkb:ECMAScript_2020
gptkbp:relatedTo Logical OR operator
gptkbp:result left-hand operand if it is not null or undefined
right-hand operand if left-hand operand is null or undefined
gptkbp:symbol ??
gptkbp:usedIn gptkb:JavaScript
gptkbp:bfsParent gptkb:ECMAScript_2020
gptkbp:bfsLayer 6