Using ?? vs || for default values.
const val1 = 0;
const val2 = null;
const val3 = '';Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Nullish Coalescing (??) | | ready |
| Logical OR (||) | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.