Java Script


JavaScript Tutorial


Admission Enquiry Form

What are Control or Conditional Statements in JavaScript ?

Control Statements are the statements which are used to control the execution of a program.

There are three type of Control Statements

  1. Branching Statements
  2. Looping Statements
  3. Jumping Statements
control-statements-in-javascript

Branching Statements

Branching Statements also called as conditional or decision making statements.Branching is so called because the program chooses to follow one branch or another.These are:

  1. if statement
  2. if else statement
  3. if else if statement
  4. switch case statement

Looping Statements

Looping Statements also called as itrative statements.Loops provide a way to repeat commands and control how many times they are repeated.These are:

  1. for loop
  2. while loop
  3. do while loop

Jumping Statements

Jumping statements are used to jump to another statement elsewhere in the program. Mostly these are used to interrupt or jump in loops and switch statements.These are:

  1. break
  2. continue