Skip to content

Instantly share code, notes, and snippets.

@alkayesdev
Created October 17, 2018 00:35
Show Gist options
  • Select an option

  • Save alkayesdev/20669a02209b79d0a4fea135e5f772a4 to your computer and use it in GitHub Desktop.

Select an option

Save alkayesdev/20669a02209b79d0a4fea135e5f772a4 to your computer and use it in GitHub Desktop.
namota node.js
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