When I searched the web which showed the JavaScript inheritance have other ways, which is different from the MDN doc.MDN constructor method
Object.defineProperty(Teacher.prototype, 'constructor', {
value: Teacher,
enumerable: false,
writable: true
});
The other method is Teacher.prototype.constructor = Teacher;
So which method is recommended?