Advertisements
Advertisements
प्रश्न
What are the different types of control statement used in JavaScript?
टिप्पणी लिखिए
Advertisements
उत्तर
There are two types of control statements are used in JavaScript. They are:
- Branching/Selection
- Looping/Repetitive
shaalaa.com
Introduction of Conditional Statements in Java
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
What will be the output for the following snippet:
For (var n=0; n<10; n++)
{
if (n==3)
{
break;
}
document write (n+”<br>”);
}What is meant by conditional statements in JavaScript?
Write the general syntax for switch statement.
Differentiate the break and continue statement.
What is if statement and write its types.
Write the syntax for else-if statement.
The absence of which statement leads to fall through situation in switch case statement?
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?
Which of the following is not true with regards to a switch statement?
