Javascript inheritance

For the inheritance exercise it’s explained that Object.create(HtmlElement.prototype) doesn’t carry over the click function as it’s using the prototype which only has the focus function.

But why does Object.create(HtmlElement) not work? Surely it would create a new object with the click function and the HtmlElement prototype.

Also why is it necessary to have HtmlSelectElement.prototype.constructor at the end. All the methods work without it

Yes it will work fine but u can’t instantiates child object using constructor may be there’s time when U use constructor to create an object that’s why it’s necessary