1var age=20;
2if (age < 18) {
3 console.log("underage");
4} else {
5 console.log("let em in!");
6}
1var condition = true; // An example condition for true/false conditions
2
3if (condition == true) {
4 console.log('condition is true');
5} else {
6 console.log('condition is not true');
7} // Console will output 'condition is true'
1function lessThan100(a, b) {
2 let sum;
3 if (a + b >= 100) {
4 result = false;
5 } else {
6 result = true;
7 }
8 return result;
9}
1//if(args[0] === "hi"){
2// console.log("Hello!");
3//}
4else {
5 //Your code here
6}