Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

mking

Member since
mking

Recent Docs Activity

View all activity
Page Date Comment

Object.prototype


Missing semicolon

Object.prototype


Fix code sample

Object.prototype


Fix code sample formatting

Object.prototype


Made the example consistent with common practice. First, prototype is set directly after constructor is defined. Second, prototype is initialized to instance of parent class (this supports the A.prototype.method way of defining methods). See Crockford.