English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write the general syntax for switch statement. - Computer Applications

Advertisements
Advertisements

Question

Write the general syntax for switch statement.

Answer in Brief

Solution

The syntax of a switch statement: switch (expression)

switch(expression)
{
  case label1:
    statements1;
    break;
case label2:
    statements2;
    break;
case labeln;
    statements - N;
    break;
default:
    statements;
}
shaalaa.com
Introduction of Conditional Statements in Java
  Is there an error in this question or solution?
Chapter 15: Control Structure in Javascript - Evaluation [Page 329]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 15 Control Structure in Javascript
Evaluation | Q 4. | Page 329
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×