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 x = parseInt(process.argv [2]); | |
| let y = parseInt (process.argv[3]); | |
| console.log (x - y); | |
| console.log (x / y); | |
| console.log (x * y); |
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
| for (let c = 5; c<=100; c+=5){ | |
| console.log(c); | |
| } | |
| for (let b = 100; b>=0; b-= 5 ){ | |
| console.log(b); | |
| } |
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 provided is not a number"); | |
| process.exit(); | |
| } | |
| for(let i=1; i<=10; i++){ | |
| console.log(`${num}x${i} = ${num*i}`); | |
| } |
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}`); | |
| } |
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
| function generate (type){ | |
| if(type==="plus"){ | |
| return (a,b)=>a+b; | |
| } | |
| else if (type=="minus"){ | |
| return (a,b)=>a-b; | |
| } | |
| else if (type === "multiply"){ | |
| return (a,b)=>a*b; |
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
| { | |
| "themes": [ | |
| "hello-elementor", | |
| "astra", | |
| "wp-bootstrap-starter" | |
| ], | |
| "plugins": [ | |
| "elementor", | |
| "happy-elementor-addons", | |
| "contact-form-7", |