Answers for "javscript ;"

0

?? javascript

?? (The Nullish Coalescing Operator)

const foo = null ?? 'default string';
console.log(foo);
// expected output: "default string"

const baz = 0 ?? 42;
console.log(baz);
// expected output: 0
Posted by: Guest on May-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language