Skip to content
On this page

Nullish Coalescing

js
const C = A ?? B;
/*
A가 null 또는 undefined이면 B를 반환합니다.
A가 null도 아니고 undefined가 아니면 A를 반환합니다.
*/