Question: The following JavaScript code will display the message You can vote! if the age variable s value is 4 0 , but will display When

The following JavaScript code will display the message You can vote! if the age variables value is 40, but will display When you are 18, you can vote! if the age variables value is 4.
if (age >=18){
window.alert("You can vote!");
} else {
window.alert("When you are 18, you can vote!");
}
True
false

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!