📅  最后修改于: 2022-03-11 15:02:49.143000             🧑  作者: Mango
// Day 4: Classes hackerrank 10 days of javascript solution
class Polygon{
constructor(length){
this.sideLength= length;
}
perimeter(){
let result =0;
for(let i=0; i