We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55574c7 commit 0326e1bCopy full SHA for 0326e1b
article.md
@@ -91,9 +91,9 @@ if (0n) {
91
Boolean operators, such as `||`, `&&` and others also work with bigints similar to numbers:
92
93
```js run
94
-alert( 1n || 2 ); // 1
+alert( 1n || 2 ); // 1 (1n is considered truthy)
95
96
-alert( 0n || 2 ); // 2
+alert( 0n || 2 ); // 2 (0n is considered falsy)
97
```
98
99
## Polyfills
0 commit comments