Skip to content

Commit ebcf110

Browse files
authored
Missed a bar
1 parent 5fb802c commit ebcf110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/object/general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Everything in JavaScript acts like an object, with the only two exceptions being
77
[1, 2, 3].toString(); // '1,2,3'
88

99
function sayHello(){}
10-
sayHello.bar = 1;
11-
sayHello.bar; // 1
10+
sayHello.numberOfTimes = 1;
11+
sayHello.numberOfTimes; // 1
1212

1313
A common misconception is that number literals cannot be used as
1414
objects. That is because a flaw in JavaScript's parser tries to parse the *dot

0 commit comments

Comments
 (0)