multitables

1.0.0 • Public • Published

Multitables


What does this do?

Anyone in need to print a multiplication table, you're in the right place!

Install

npm install multitables@latest --save

Usage

How to use it:

var your_var = new Multitables(number)

Define, number

number is an array with 2 required numbers: [multiply_number, repeat_number]

multiply_number

multiply_number number: Your multiplication number. For example:

multiply_number x __ = __

repeat_number

repeat_number number How many times you want your multiplication table to repeat. For example:

multiply_number x repeat_number = __

How do you get the table?

To get the table, you just need to run your_var.multiplicationTableText, and you'll get your table!

Example

var my_var = new Multitables([3, 8]) // Should print out the table of 3 uptill 3 x 8
console.log(my_var.multiplicationTableText)

Output:

3 x 0 = 0 
3 x 1 = 3 
3 x 2 = 6 
3 x 3 = 9 
3 x 4 = 12 
3 x 5 = 15
3 x 6 = 18
3 x 7 = 21

License

MIT

Package Sidebar

Install

npm i multitables

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.5 kB

Total Files

6

Last publish

Collaborators

  • jivinmazumder