Advertisements
Advertisements
प्रश्न
What message will be displayed, if the input for age is given as 20, for the following snippet?
Advertisements
उत्तर
if (age> = 18)
{
alert ("you are eligible to get Driving licence"}
}
else
alert ("you are not eligible to get driving licence");
}APPEARS IN
संबंधित प्रश्न
Which conditional statement is used to transfer control from current statement to another statement?
In which loop the condition is evaluated, before executing a statement?
The _______ statement is especially useful when testing all the possible results of an expression.
What are the different types of control statement used in JavaScript?
What is meant by conditional statements in JavaScript?
List out the various branching statements in JavaScript?
What is if statement and write its types.
Explain switch case statement with example.
Rewrite the following code using the if-else statement:
int m = 400;
double cl). = (m>300) ? (m/10.0) * 2; (m/20.0) - 2;Which of the following data type cannot be used with switch case construct?
