nullish nullish coalescing naskah
/*
Returns its right-hand side operand when its left-hand side operand
is null or undefined, and otherwise returns its left-hand side operand.
*/
const checker = null ?? "Hello";
// Hello
const numChecker = 0 ?? "Hello";
// 0
const foo = user.id ?? null;
// user.id if it exists, null if it doesn't
Banana in Transit