javascript different if statements code example
Example: javascript if else
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!");
}