diff options
-rw-r--r-- | javascript.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index 36aad102..2d665e67 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -330,6 +330,7 @@ var myPrototype = { myFunc: function(){ return this.myString.toLowerCase() } +}; myObj.__proto__ = myPrototype; myObj.meaningOfLife; // = 42 |