every post, book, about javascript inheritance, tells us to fix the prototype constructor, after this situtation:
A.prototype = Object.create(B.prototype);
A.prototype.constructor = A ; //fixing here I undestand what
I understand what Object.create does, however the next line seems to be useless. I wrote some code without it and that has no effect. So my question is, why everybody says to fix the constructor ?