Hey there! I think for the sake of simplicity, you extend the prototype of Array. To communicate best practices, I'd like to come up with examples that do not extend the global Array object.
The alternative, to create objects from scratch is also more real-world oriented.
Here is a list of examples that use prototype
Thank you.
Hey there! I think for the sake of simplicity, you extend the prototype of
Array. To communicate best practices, I'd like to come up with examples that do not extend the global Array object.The alternative, to create objects from scratch is also more real-world oriented.
Here is a list of examples that use
prototypeThank you.