Created
March 14, 2018 13:56
-
-
Save fdjones/368e5cdd80c8abb677cb25a86ff51a82 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
// bad? | |
function foo() {this.stuff="stuff";} | |
var bar = new foo(); | |
// good... | |
function foo() {this.stuff="stuff";} | |
function bar() {} | |
bar.prototype = new foo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment