Exercise:

Write an if/else statement with the following condition:

If the variable age is greater than 18, output "Old enough", otherwise output "Too young".

if (condition) {
    block of code to be executed if the condition is true
} else {
    block of code to be executed if the condition is false
}

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com