OOJS1 & OOJS2 assessment/feedback needed

Hi there,

Assessment and some feedback wanted for this assignment, code here.

Thank you in advance - look forward to your feedback.

Hi @Phil_G and welcome to the community :wave:

Great work on this exercise!

constructor(sideLength) {
 // Is there a different way to go about doing this bit??
 super("square", 4, sideLength);
 this.sideLength = sideLength;

Since you correctly used super() you won’t need the this.sideLength = sideLength;. This already happens in the constructor of the parent class.

In calcArea() you used this.sides instread of this.sideLength.

Everything else is correct. :+1:

See you,

Thank you for the welcome and the feedback @mikoMK :slight_smile:

All the best,

1 Like