Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 491 Bytes

README.md

File metadata and controls

33 lines (17 loc) · 491 Bytes

area-of-figures-npm-package

This is a module that gives you the area of various figures when you call its functions with an argument(s)

In Node :

let area = require('area-of-figures')

Examples:

area.square(2);  //4
area.circle(2);  // 12.56

Functions available:

square(side)

circle(radius)

triangle(base,height)

trapezium(a,base,height)

ellipse(a,b)

parallelogram(a,b)

sector(radius,theta)

Happy Coding !!!

Cheers :)