area-of-figures

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

Usage no npm install needed!

<script type="module">
  import areaOfFigures from 'https://cdn.skypack.dev/area-of-figures';
</script>

README

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