summaryrefslogtreecommitdiffhomepage
path: root/javascript.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r--javascript.html.markdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index 254163e8..9cc7617d 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -364,7 +364,7 @@ myObj.meaningOfLife // = 43
// are given when they're created with that constructor and the new keyword.
myConstructor.prototype = {
getMyNumber: function(){
- return self.myNumber
+ return this.myNumber
}
}
var myNewObj2 = new myConstructor()
@@ -427,6 +427,9 @@ more about how to use JavaScript in web pages, start by learning about the
[Document Object
Model](https://developer.mozilla.org/en-US/docs/Using_the_W3C_DOM_Level_1_Core)
+[Javascript Garden](http://bonsaiden.github.io/JavaScript-Garden/) is an in-depth
+guide of all the counter-intuitive parts of the language.
+
In addition to direct contributors to this article, some content is adapted
from Louie Dinh's Python tutorial on this site, and the [JS
Tutorial](https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript)