Skip to content

Commit 8e40eb6

Browse files
authored
Update Polygon.js
1 parent 26916db commit 8e40eb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Geometry/Polygon.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/*
22
This program calculates the area, perimeter, and interior angle of a regular n-gon
33
given the side length and the number of sides.
4+
* @constructor
5+
* @param {number} sideLength - The side length of the polygon.
6+
* @param {number} sides - The number of sides in the polygon.
47
*/
58

69
class Polygon{

0 commit comments

Comments
 (0)