what are if else statements in javascript 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!");
}