Hello… :
In the following paragraph, is there a problem if I replace a :
Teacher.prototype = Object.create(Person.prototype);
with :
Teacher.prototype = Person.prototype;
Also, Can I have a simple explanation of what this method does :
Object.defineProperty(Teacher.prototype, 'constructor', {
value: Teacher,
enumerable: false, // so that it does not appear in 'for in' loop
writable: true });
And Thanks in advance