@jroid8 to Programmer [email protected] • 1 year agoknow the features of your languageimagemessage-square144arrow-up1647arrow-down123
arrow-up1624arrow-down1imageknow the features of your language@jroid8 to Programmer [email protected] • 1 year agomessage-square144
minus-square@Rednaxlink13•1 year agoEven in Javascript, the ?? operator checks explicitly for null or undefined. So it added undefined, but not 0 or false. But adding undefined sounds like a good addition for this operator. See the Javascript section of: https://wikipedia.org/wiki/Null_coalescing_operator#Examples_by_languages
Even in Javascript, the ?? operator checks explicitly for null or undefined. So it added undefined, but not 0 or false. But adding undefined sounds like a good addition for this operator.
See the Javascript section of: https://wikipedia.org/wiki/Null_coalescing_operator#Examples_by_languages