Hello,
On https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor,
Towards the end of the page, there is an example meant to show an error when changing the constructor, starting with “function
ParentWithStatic()
{}”.
However when I copy it to the console and create an instance, everything works as is, and I encounter no error,
Even though the comment suggests there should be one when calling the method getOffsetByInitialPosition
// error undefined is not a function, since the constructor is Child