From 6eaee02c2e2f2bca8112ca9cbb814915afec3adf Mon Sep 17 00:00:00 2001 From: apit Date: Tue, 14 Oct 2014 09:46:30 +0700 Subject: [PATCH] object property name/value pair uses colon, not equal sign --- objects/global_footprint.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/objects/global_footprint.md b/objects/global_footprint.md index 76408429..86de8075 100644 --- a/objects/global_footprint.md +++ b/objects/global_footprint.md @@ -4,11 +4,11 @@ If you are developing a module, which might be running on a web page, which also Suppose we are developing a counter module: ```js var myCounter = { - number = 0, - plusPlus = function(){ - this.number = this.number + 1; + number : 0, + plusPlus : function(){ + this.number : this.number + 1; }, - isGreaterThanTen = function(){ + isGreaterThanTen : function(){ return this.number > 10; } }