| |
?? is the nullish coalescing operator. It differs from || in that if you had (in the above example)
| |
name equal to an empty string (which is falsey) x would then be assigned the value (no name). The nullish coalescing operator will only use the right-hand assignment for “nullish” values (null or undefined).