We are going to add new methods to the Array() object using Array.prototype property.
Prototype is a property that is associated with every function and object by default in JavaScript.
With Array.prototype we can access existing methods in the Array() object like push(), pop(), map() etc. or add new methods that will be available to every array we define.
extract a specific number of elements from an array starting from first element.