+ 1

Am learning OOJ(object oriented javascript) and am stuck here.

I need to add a new method to the Shape class's prototype called calcPerimeter(), which calculates its perimeter (the length of the shape's outer edge) and logs the result to the console. Here is my code. https://code.sololearn.com/Wi3zdC2dOyjA/?ref=app The full link to the question is https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Test_your_skills:_Object-oriented_JavaScript

10th Nov 2021, 7:38 PM
John Delvin
John Delvin - avatar
1 Respuesta
+ 2
https://code.sololearn.com/WeXDq50vt0Gu/?ref=app
10th Nov 2021, 9:55 PM
Pariket Thakur
Pariket Thakur - avatar