➕nullish coalescing (??)
🚧 under construction
expr ?? default // nullish coalescing// ⭐️ nullish coalescing
x = x ?? 100;
// polyfill
x = (x !== undefined && x !== null) ? x : 100;
// ❗️ slightly different from:
x = x || 100;Last updated
🚧 under construction
expr ?? default // nullish coalescing// ⭐️ nullish coalescing
x = x ?? 100;
// polyfill
x = (x !== undefined && x !== null) ? x : 100;
// ❗️ slightly different from:
x = x || 100;Last updated