/** * Calculator Module * Pure functions for basic arithmetic operations */ /** * Adds two numbers * @param {number} a - First number * @param {number} b - Second number * @returns {number} Sum of a and b */ const add = (a, b) => a + b; /** * Subtracts second number from first number * @param {number} a - Number to subtract from * @param {number} b - Number to subtract * @returns {number} Difference of a and b */ const subtract = (a, b) => a - b; /** * Multiplies two numbers * @param {number} a - First number * @param {number} b - Second number * @returns {number} Product of a and b */ const multiply = (a, b) => a * b; module.exports = { add, subtract, multiply, };