# JavaScript Algorithm: Sum of Polygon Angles

## Finding the sum of internal angles in a polygon

Today, we write a function called `sumPolygon`

that will accept one integer, `n`

, as an argument.

You are given an `n`

-sided regular polygon. The goal of the function is to calculate and return the total sum of internal angles. We are not going to go into mathematical detail on finding…