Create a Polygon class that has the following properties:
Locked code in the editor tests the Polygon constructor and the perimeter method.
Note: The perimeter method must be lowercase and spelled correctly.
There is no input for this challenge.
The perimeter method must return the polygon's perimeter using the side length array passed to the constructor.
Consider the following code:
// Create a polygon with side lengths 3, 4, and 5
let triangle = new Polygon([3, 4, 5]);
// Print the perimeter
When executed with a properly implemented Polygon class, this code should print the result of .