if else statement and else if statement in JavaScript

 if else statement and else if statement in JavaScript


In this article we are goanna to see about if else statement and else if statement in JavaScript. which is most important when you are going to start your career in JavaScript. Please read and enjoy this article if you want to give any feedback about your experience, we welcome.




if else statement: 

if…else statement is used when a different sequence of instruction is to be Executed depending on the logical value(True/False) of the condition evaluated.

Syntax:

if(condition)
   {
Statement _1_Block;
    }
else
   {
Statement _2_Block;
    }

If else statement:

if…else statement is used when a different sequence of instruction is to be Executed depending on the logical value(True/False) of the condition evaluated.

Syntax:

if(condition)
   {
Statement _1_Block;
    }
else
   {
Statement _2_Block;
    }





Share:

0 comments

Please leave your comments...... Thanks