how to add if condition in javascript 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!");
}