by willyg on 5/4/11, 9:32 AM with 14 comments
by giberson on 5/4/11, 3:16 PM
// 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)?by nprincigalli on 5/4/11, 1:30 PM
by clemesha on 5/4/11, 1:36 PM
by voidr on 5/4/11, 11:48 AM
Somebody should tell Mozilla, that there are no classes in JavaScript....
by rgbrgb on 5/4/11, 2:36 PM