Skip to content

Commit 624a9e6

Browse files
authored
replace numberOfTimes to count
1 parent ebcf110 commit 624a9e6

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.numberOfTimes = 1;
11-
sayHello.numberOfTimes; // 1
10+
sayHello.count = 1;
11+
sayHello.count; // 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)