javascript how to write if else code example
Example: IF else statement
var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}
var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}