minor fixes
This commit is contained in:
parent
44964399e1
commit
2189dc9a4c
1 changed files with 2 additions and 2 deletions
|
@ -91,9 +91,9 @@ if (0n) {
|
||||||
Boolean operators, such as `||`, `&&` and others also work with bigints similar to numbers:
|
Boolean operators, such as `||`, `&&` and others also work with bigints similar to numbers:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
alert( 1n || 2 ); // 1
|
alert( 1n || 2 ); // 1 (1n is considered truthy)
|
||||||
|
|
||||||
alert( 0n || 2 ); // 2
|
alert( 0n || 2 ); // 2 (0n is considered falsy)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Polyfills
|
## Polyfills
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue