This module provides basic arithmetic operations such as addition, subtraction, multiplication, and division.
-
add(a, b): Adds two numbers
a
andb
and returns the result. -
subtract(a, b): Subtracts
b
froma
and returns the result. -
multiply(a, b): Multiplies
a
byb
and returns the result. -
divide(a, b): Divides
a
byb
and returns the result.
const { add, subtract, multiply, divide } = require('test_calc_here');
console.log(add(5, 3)); // Output: 8
console.log(subtract(10, 4)); // Output: 6
console.log(multiply(2, 6)); // Output: 12
console.log(divide(10, 2)); // Output: 5