Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function multiplicationTable(input) {
- let digit = Number(input[0]);
- for (let index = 1; index <= 10; index++) {
- console.log(`${index} * ${digit} = ${index * digit}`);
- }
- }
- multiplicationTable(["5"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement