Skip to content

Commit

Permalink
Merge pull request #374 from siddharthkp/patch-2
Browse files Browse the repository at this point in the history
Objects: Missed a bar
  • Loading branch information
peterjwest authored Oct 9, 2017
2 parents 5fb802c + 624a9e6 commit 16ba1e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/en/object/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Everything in JavaScript acts like an object, with the only two exceptions being
[1, 2, 3].toString(); // '1,2,3'

function sayHello(){}
sayHello.bar = 1;
sayHello.bar; // 1
sayHello.count = 1;
sayHello.count; // 1

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

0 comments on commit 16ba1e4

Please sign in to comment.