Tutorials
THE WORLD'S LARGEST WEB DEVELOPER SITE

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 }