Last active
August 29, 2015 14:17
-
-
Save muffinresearch/a8299e0708b22154ab64 to your computer and use it in GitHub Desktop.
new keyword not used
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 MyConstructor(){ | |
console.log(this.toString()); | |
} | |
var instance1 = MyConstructor(); | |
var instance2 = new MyConstructor(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment