How is the value of an object or array inside a prototype object affected by the use of instances? [duplicate]
This question already has answers here:
Javascript object members that are prototyped as arrays become shared by all class instances
...