1if (condition1) {
2 // code to be executed if condition1 is true
3} else if (condition2) {
4 // code to be executed if the condition1 is false and condition2 is true
5} else {
6 // code to be executed if the condition1 is false and condition2 is false
7}
1if (5 < 10) {
2 console.log("5 is less than 10");
3} else {
4 console.log("5 is now bigger than 10")
5}
1if (pros < 10) {
2 console.log("LESS THAN 10 PROS!");
3}
4else if (pros < 5) {
5 console.log("LESS THAN 5 PROS!");
6}
7else {
8 console.log("How many pros are there?");
9}
1if(){ //Note, you cant leave if() empty. You have to put something in it, for exmaple, if(args[0] === "hi")
2 //Your code here
3}