Starter template code for Assignment 2 - JavaScript Methods.
Every object in JavaScript has a built-in property called “prototype.”
The prototype constructor is used to add new methods (functions) and properties to a JavaScript object.
In this Assignment, we use the prototype constructor to add new methods to the Array() object.