IF Statement in Javascript

 IF Statement in Javascript


In this article we are goanna to see about what is JavaScript if statement and how can we use it. 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.




It is used to execute an instruction or block of instruction only if a condition is fulfilled. 

Syntax:

if(condition)
   {
block of statements;
    }

IF Statement with logical operator:

It is used to execute an instruction or block of instruction If both condition is fulfilled.

Syntax:

if((condition) && (condition))
   {
block of statements;
    }
 



Share:

0 comments

Please leave your comments...... Thanks