Skip to content

Commit 40f0f68

Browse files
committed
Update READNE-zh-CN question 35
1 parent b801b53 commit 40f0f68

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

zh-CN/README-zh_CN.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,16 +1056,18 @@ undefined
10561056

10571057
#### 答案: A
10581058

1059-
只有 6[falsy](https://developer.mozilla.org/zh-CN/docs/Glossary/Falsy) 值:
1059+
只有 8[falsy](https://developer.mozilla.org/zh-CN/docs/Glossary/Falsy) 值:
10601060

10611061

10621062

10631063
- `undefined`
10641064
- `null`
10651065
- `NaN`
1066-
- `0`
1067-
- `''` (empty string)
10681066
- `false`
1067+
- `''` (空字串)
1068+
- `0`
1069+
- `-0`
1070+
- `0n` (BigInt(0))
10691071

10701072
`Function` 构造函数, 比如 `new Number``new Boolean`,是 [truthy](https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy)
10711073

zh-TW/README_zh-TW.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,14 +1064,16 @@ undefined;
10641064

10651065
#### 答案: A
10661066

1067-
只有六個值是 falsy
1067+
只有八個值是 falsy
10681068

10691069
- `undefined`
10701070
- `null`
10711071
- `NaN`
1072-
- `0`
1073-
- `''` (空字串)
10741072
- `false`
1073+
- `''` (空字串)
1074+
- `0`
1075+
- `-0`
1076+
- `0n` (BigInt(0))
10751077

10761078
函式建構式(Function constructors) 如 `new Number``new Boolean` 都為 truthy。
10771079

0 commit comments

Comments
 (0)