Skip to content

Commit af15e0a

Browse files
committed
Merge pull request BonsaiDen#296 from Dafrok/master
revise an error about object type
2 parents 40432e5 + f9ed914 commit af15e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/zh/object/general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##对象使用和属性
22

3-
JavaScript 中所有变量都是对象,除了两个例外 [`null`](#core.undefined)[`undefined`](#core.undefined)
3+
JavaScript 中所有变量都可以当作对象使用,除了两个例外 [`null`](#core.undefined)[`undefined`](#core.undefined)
44

55
false.toString(); // 'false'
66
[1, 2, 3].toString(); // '1,2,3'
@@ -9,7 +9,7 @@ JavaScript 中所有变量都是对象,除了两个例外 [`null`](#core.undef
99
Foo.bar = 1;
1010
Foo.bar; // 1
1111

12-
一个常见的误解是数字的字面值(literal)不是对象。这是因为 JavaScript 解析器的一个错误,
12+
一个常见的误解是数字的字面值(literal)不能当作对象使用。这是因为 JavaScript 解析器的一个错误,
1313
它试图将*点操作符*解析为浮点数字面值的一部分。
1414

1515
2.toString(); // 出错:SyntaxError

0 commit comments

Comments
 (0)