3 ms·
These are not the same. let val = 0 val || 30 // 30 val ?? 30 // 0 The same goes for other falsy values.
by charrondev 8y ago
These are not the same.
let val = 0
val || 30 // 30
val ?? 30 // 0
The same goes for other falsy values.