JavaScript Codecademy
In JavaScript methods (aka member functions) are functions that belong to objects. Member functions are designed to operate directly on the properties of the object to which they belong. function Circle (radius) { this.radius = radius; this.area = function () { return Math.PI *…