• + 0 comments
    class Polygon {
      constructor(length) {
        this.length = length;
      }
    
      perimeter() {
        let sum = 0;
        for (let i = 0; i < this.length.length; i++) {
         sum += this.length[i];
        }
    		
    		
        return sum;
      }
    }