File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1056,16 +1056,18 @@ undefined
1056
1056
1057
1057
#### 答案: A
1058
1058
1059
- 只有 6 种 [ falsy] ( https://developer.mozilla.org/zh-CN/docs/Glossary/Falsy ) 值:
1059
+ 只有 8 种 [ falsy] ( https://developer.mozilla.org/zh-CN/docs/Glossary/Falsy ) 值:
1060
1060
1061
1061
1062
1062
1063
1063
- ` undefined `
1064
1064
- ` null `
1065
1065
- ` NaN `
1066
- - ` 0 `
1067
- - ` '' ` (empty string)
1068
1066
- ` false `
1067
+ - ` '' ` (空字串)
1068
+ - ` 0 `
1069
+ - ` -0 `
1070
+ - ` 0n ` (BigInt(0))
1069
1071
1070
1072
` Function ` 构造函数, 比如 ` new Number ` 和 ` new Boolean ` ,是 [ truthy] ( https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy ) 。
1071
1073
Original file line number Diff line number Diff line change @@ -1064,14 +1064,16 @@ undefined;
1064
1064
1065
1065
#### 答案: A
1066
1066
1067
- 只有六個值是 falsy
1067
+ 只有八個值是 falsy
1068
1068
1069
1069
- ` undefined `
1070
1070
- ` null `
1071
1071
- ` NaN `
1072
- - ` 0 `
1073
- - ` '' ` (空字串)
1074
1072
- ` false `
1073
+ - ` '' ` (空字串)
1074
+ - ` 0 `
1075
+ - ` -0 `
1076
+ - ` 0n ` (BigInt(0))
1075
1077
1076
1078
函式建構式(Function constructors) 如 ` new Number ` 和 ` new Boolean ` 都為 truthy。
1077
1079
You can’t perform that action at this time.
0 commit comments