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 = number
number
Define, 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 = 3 8 // Should print out the table of 3 uptill 3 x 8console
Output:
3 x 0 = 0 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9 3 x 4 = 12 3 x 5 = 153 x 6 = 183 x 7 = 21
License
MIT