const calculator = require("chart-basic-calculator");
function multiplicationTable(number) {
for (var i = 0; i < 13; i++) {
console.log(`${i} X ${number} = ${calculator.multiply(i, number)}`);
}
}
multiplicationTable(5);
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 i chart-basic-calculator
- Addition
- Subtraction
- Multiplication
- Division
MIT