Answers for "IF else statement"

44

IF else statement

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

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
0

if else statement

if ((age >= 14) && (age < 19)) {        // logical condition
status = "Eligible.";               // executed if condition is true
} else {                                // else block is optional
status = "Not eligible.";           // executed if condition is false
}
Posted by: Guest on April-07-2021
0

if else statement

To learn about Java if else statement visit website:
https://www.allaboutjava.com/2021/07/java-if-else-statements.html
Posted by: Guest on July-23-2021

Browse Popular Code Answers by Language