It contains the basic math modules which contains different operations.
The one who is not familier to the Math operations, Get done those using this Package.
Math: A inBuilt function in programming languages.
Square: A number or integer is multiplied by itself.
Cube: A number or integer is multiplied by itself two times.
Area: Area of circle is equal to pi times square of its radius.
Perimeter: Perimeter of circle is equal to two times pi into its radius.
npm install whitedevil --save
import {square, cube, area, perimeter} from 'whitedevil'
console.log(area(5));
console.log(square(128));
console.log(cube(64));
console.log(perimeter(5));
Another way of importing package here, try this.
- *const {square, cube, area, perimeter} = require ('whitedevil')