rectangle-area
Get the
area of a rectangle
, given the length and width
Install
$ npm install --save rectangle-area
Usage
const rectangleArea = console// => 10.925 console// => 1 console// => 9.42477796076938 console// => Error: Invalid input. Sides of the rectangle must be greater than 0 console// => Error: Invalid input. Sides of the rectangle must be greater than 0
License
MIT © Nicolás Quiroz