| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # Global footprint | |
| 2 | - If you are developing an module, which might be running on a web page, which also runs other mudules, then you must beware the variable name overlapping. | ||
| 2 | + If you are developing a module, which might be running on a web page, which also runs other modules, then you must beware the variable name overlapping. | ||
| 3 | 3 | ||
| 4 | 4 | Suppose we are developing a counter module: | |
| 5 | 5 | ```js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ var adult = {age: 26}, | |||
| 9 | 9 | retrievedProperty = adult.age; | |
| 10 | 10 | // The line above | |
| 11 | 11 | ``` | |
| 12 | - Firsty, the interpreter looks through every property the object itself has. For example, `adult` has only one own property — `age`. But besides that one it actually has a few more properties, which were inherited from Object.prototype. | ||
| 12 | + First, the interpreter looks through every property the object itself has. For example, `adult` has only one own property — `age`. But besides that one it actually has a few more properties, which were inherited from Object.prototype. | ||
| 13 | 13 | ```js | |
| 14 | 14 | var stringRepresentation = adult.toString(); | |
| 15 | 15 | // the variable has value of '[object Object]' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments