Introduction to Object-Oriented JavaScript - MDC Docs
developer.mozilla.org
Introduction to Object-Oriented JavaScript - MDC Docs
1–10 of 15 posts
Re: Introduction to Object-Oriented JavaScript - MDC Docs
#2Somebody should tell Mozilla, that there are no classes in JavaScript....
Re: Introduction to Object-Oriented JavaScript - MDC Docs
#3> Inheritance A Class can inherit characteristics from another Class. Somebody should tell Mozilla, that there are no classes in JavaScript....
Re: Introduction to Object-Oriented JavaScript - MDC Docs
#4> Inheritance A Class can inherit characteristics from another Class. Somebody should tell Mozilla, that there are no classes in JavaScript....
Re: Introduction to Object-Oriented JavaScript - MDC Docs
#5> Inheritance A Class can inherit characteristics from another Class. Somebody should tell Mozilla, that there are no classes in JavaScript....
The guide says that immediately after the terminology paragraph
An interesting ressource, anyway.
(1) https://developer.mozilla.org/en/Introduction_to_Object-Orie...
Re: Introduction to Object-Oriented JavaScript - MDC Docs
#6Re: Introduction to Object-Oriented JavaScript - MDC Docs
#7Re: Introduction to Object-Oriented JavaScript - MDC Docs
#8Re: Introduction to Object-Oriented JavaScript - MDC Docs
#9 // in Person function
this.gender = gender;
// outer scope (gender will never be this value because it is overridden by the person constructor argument)
Person.prototype.gender = 'Person Gender';
Am I correct, or does the prototype.gender line have some other purpose than instantiating gender to a value that is immediately overridden by the passed in value (or undefined if no value is passed)?Re: Introduction to Object-Oriented JavaScript - MDC Docs
#10Under the section "The Property (object attribute)" the code segment has two curious lines. I expect the first cancels out the latter, making the latter useless. // in Person function this.gender = gender; // outer scope (gender will never be this value because it is overridden by the person constructor argument) Person.prototype.gender = 'Person Gender'; Am I correct, or does the prototype.gender line have some othe…