79507702

Date: 2025-03-13 21:53:14
Score: 1.5
Natty:
Report link

enter code hereWhen we inherit by extension we call the Shape() in the Rectabgle constructor. to decouple their prototypal chains we say Rectangle.prototype = Object.create(Shape.prototype)

lastly Rectangle.prototype.constructor = Rectangle;


function Rectangle ( x, y ) {
Shape.cali(this)  
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When we in
  • Low reputation (1):
Posted by: user3440335