Question: If the variable age has a value greater than 18, output Old enough!, otherwise output Oh so young!. You are replacing the text, Display the
If the variable age has a value greater than 18, output "Old enough!", otherwise output "Oh so young!. You are replacing the text, Display the result here, in the paragraph with the id of demo.
Display the result here.
age = prompt(Please enter your age);
// Add the if/else statement here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
