MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

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.