Created
September 28, 2015 21:01
-
-
Save qetr1ck-op/c43b5a7d1ec3afd701af to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Animal() { } | |
Animal.prototype = {}; // override | |
var animal = new Animal(); | |
console.log( animal.constructor == Animal ); // false | |
console.log( animal.constructor == Object ); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment