javascript-methods-starter-code

javascript-methods-starter-template-code

Starter template code for Assignment 2 - JavaScript Methods.

JavaScript Prototype: Method

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.