Answers for "if else functions in javascript"

34

if else js

if (condition) {
	// statement
} else if(condition){
	// statement
}else{
  // statement
}
Posted by: Guest on January-18-2022
4

IF else statement

var age=20;
if (age < 18) {
	console.log("underage");
} else {
	console.log("let em in!");
}
Posted by: Guest on March-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language