Nullish coalescing operator

// null 병합 연산자
const a = 0;
const b = a || 3; // || 연산자는 falsy 값이면 뒤로 넘어감
// falsy: 0, '', false, NaN, null, undefined
console.log(b); // 3

const c = 0;
const d = c ?? 3; // ?? 연산자는 null과 undefined일 때만 뒤로 넘어감
// falsy 값 중에서도 null, undefined일 경우에만 뒤로 넘어간다.
console.log(d); // 0

const e = null;
const f = e ?? 3;
console.log(f); // 3

const g = undefined;
const h = g ?? 3;
console.log(h); // 3