calculatorprime

1.0.2 • Public • Published

README.md

Calculator Module

This module provides basic arithmetic operations such as addition, subtraction, multiplication, and division.

Functions:

  • add(a, b): Adds two numbers a and b and returns the result.
  • subtract(a, b): Subtracts b from a and returns the result.
  • multiply(a, b): Multiplies a by b and returns the result.
  • divide(a, b): Divides a by b and returns the result.

Usage:

const calculator = require('./calculator');

console.log(calculator.add(5, 3)); // Output: 8
console.log(calculator.subtract(10, 4)); // Output: 6
console.log(calculator.multiply(2, 6)); // Output: 12
console.log(calculator.divide(10, 2)); // Output: 5

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i calculatorprime

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

1.27 kB

Total Files

3

Last publish

Collaborators

  • 7ommyshelby