const calculator=require('magnifique-calculator')
function multiplicationTable(number){
for(var i=1;i<13;i++){
console.log(`${i} * ${number} = ${calculator.multiply(i,number)}`);
}
}
multiplicationTable(4)
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a package.json first with the npm init command.
Installation is done using the npm install command:
npm install magnifique-calculator
const calculator = require('magnifique-calculator');
The divide function throws an error if the second argument is zero, indicating division by zero is not allowed.
This calculator package is compatible with JavaScript environments that support ES6 syntax.
For any questions or issues, please contact the package maintainer at ketymagnifique@gmail.com.