| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,11 +4,11 @@ If you are developing a module, which might be running on a web page, which also | |||
| 4 | 4 | Suppose we are developing a counter module: | |
| 5 | 5 | ```js | |
| 6 | 6 | 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; | ||
| 10 | 10 | }, | |
| 11 | - isGreaterThanTen = function(){ | ||
| 11 | + isGreaterThanTen : function(){ | ||
| 12 | 12 | return this.number > 10; | |
| 13 | 13 | } | |
| 14 | 14 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments