Skip to content

Commit 6eaee02

Browse files
committed
object property name/value pair uses colon, not equal sign
1 parent 532bdaf commit 6eaee02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

objects/global_footprint.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ If you are developing a module, which might be running on a web page, which also
44
Suppose we are developing a counter module:
55
```js
66
var myCounter = {
7-
number = 0,
8-
plusPlus = function(){
9-
this.number = this.number + 1;
7+
number : 0,
8+
plusPlus : function(){
9+
this.number : this.number + 1;
1010
},
11-
isGreaterThanTen = function(){
11+
isGreaterThanTen : function(){
1212
return this.number > 10;
1313
}
1414
}

0 commit comments

Comments
 (0)