Constructor Functions
from:

I don't understand my professor and what is wrong with my problem. Can you help me?

correctionfunction Shape(height, width) {
//creates an instance field not a static field
this.height = height;
this.width = width;
return height * width;}Shape.prototype.calculateArea = function Shape(height, width){
console.log( Shape);

}

Shape(5,5)
Teacher: There is still a small syntax issue with the calculateArea function.
Me"
i get no errors
Teacher: When you add to the prototype of Shape...

Constructor Functions

Poster :
rissa146