4
Q:

if else statement

var age=20;
if (age < 18) {
	console.log("underage");
} else {
	console.log("let em in!");
}
27
int a = 100;
int b = 100;
if (a < b){
  print("a is less than b") // This will run because 1 < 2
  }
else{
  //This only runs if the condition for the if statement is not met
  print("a is greater than or equal to b")
  }
-1

New to Communities?

Join the community