We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
function Apple(name) { var self = this instanceof Apple ? this : Object.create(Apple.prototype); self.name = name; return self; /* if (this instanceof Apple) { this.name = name; } else { return new Apple(); }*/ } Apple.prototype.eat = function() { log('Eating ' + this.name); };
There was an error while loading. Please reload this page.