Created
May 2, 2017 07:16
-
-
Save MagicControl/c00f616e5b199e1c49f7ccbffc092e3f 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
var A = function() { | |
this.a = 10; | |
} | |
A.prototype.hello = function() { | |
console.log('Hello from A!'); | |
} | |
var B = function() { | |
} | |
B.prototype = new A(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment