You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+27
Original file line number
Diff line number
Diff line change
@@ -2198,6 +2198,33 @@ Other Style Guides
2198
2198
const bar = a + (b / c) * d;
2199
2199
```
2200
2200
2201
+
<a name="nullish-coalescing-operator"></a>
2202
+
- [15.9](#nullish-coalescing-operator) The nullish coalescing operator (`??`) is a logical operator that returns its right-hand side operand when its left-hand side operand is `null` or `undefined`. Otherwise, it returns the left-hand side operand.
2203
+
2204
+
> Why? It provides precision by distinguishing null/undefined from other falsy values, enhancing code clarity and predictability.
0 commit comments