Suma kątów wielokąta w JavaScript

// Find the Sum of Polygon Angles 
sumPolygon = (n) => (n - 2) * 180

sumPolygon(4) // returns 360
sumPolygon(3) // returns 180
deejay