A fun JavaScript library for working with rectangles.
npm install nectar-legA fun little library for working with rectangles in JavaScript.
Nectar Leg takes four arguments: x, y, width, and height.
It also has two methods:
- area: returns the area of the rectangle
- perimeter: returns the perimeter of the rectangle