demopro_assing
v1.0.1
Published
creating npm package
Downloads
4
Readme
Readme.md
Math Operations Module
This module provides basic math operations as JavaScript functions.
Functions:
- **add(a, b): **Adds two numbers a and b.
- subtract(a, b): Subtracts b from a.
- multiply(a, b): Multiplies a by b.
- divide(a, b): Divides a by b.
Usage:
const mathOperations = require('math-operations'); console.log(mathOperations.add(1, 2)); // 3 console.log(mathOperations.subtract(5, 3)); // 2 console.log(mathOperations.multiply(2, 4)); // 8 console.log(mathOperations.divide(10, 2)); // 5