• + 0 comments
    class Polygon {
        constructor(side) {
            this.side = side;
        }
        perimeter() {
            let side=this.side
            return side.reduce((a,b)=> a+b)
        }
    }