Per MDN here, it is suggested that Teacher.prototype.constructor
should be reset to Teacher
. Teacher
inherits from Person
object using prototypal inheritance. I am trying to understand what can possibly break if this step is not followed.
Here is a codepen that I setup, where I did not follow this step, however things seem to work fine. I think I am missing something. Can someone please help?