Does anyone know the steps to Create a Shape constructor function that has a height and width property and Include a method that will calculate the area of the shape, where area is defined as the shape's height multiplied by its width.
Isn't that just any function accepting input in javascript? myFunction (x,y,unit) { return x * y + unit+'^2'; } Takes the two inputs, multiplies them, returns the result + the unit of measure squared (which is the area of the inputs multiplied)