Created
October 17, 2018 00:35
-
-
Save alkayesdev/20669a02209b79d0a4fea135e5f772a4 to your computer and use it in GitHub Desktop.
namota node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let num = +process.argv[2]; | |
| if(!Number.isInteger(num)){ | |
| console.log("the provideed value is not a number"); | |
| process.exit(); | |
| } | |
| for (let i = 1; i <= 10; i++){ | |
| console.log(`${num}x${i} = ${num*i}`); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment