diff --git a/javascript.html.markdown b/javascript.html.markdown index 254163e8..cbe82054 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()