nautyvaibhav / 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)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :)

About

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


Languages

Language:JavaScript 100.0%