Created
February 20, 2014 08:42
-
-
Save mvasilkov/9109339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo() { | |
this.a = function () { return 96 } | |
this.b = function () { return this.a() * 10101 } | |
} | |
function bar() {} | |
bar.prototype = new foo | |
b = new bar | |
b.a() // 96 | |
b.b() // 969696 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment