Jumlah sudut poligon dalam javascript
// Find the Sum of Polygon Angles
sumPolygon = (n) => (n - 2) * 180
sumPolygon(4) // returns 360
sumPolygon(3) // returns 180
deejay
// Find the Sum of Polygon Angles
sumPolygon = (n) => (n - 2) * 180
sumPolygon(4) // returns 360
sumPolygon(3) // returns 180