Contact Us || Privacy Policy || About Us |
|
JS StatementsJs statement check the condition true or False. Types of Statements.
1) If Statementif statement is used to test the condition this statements get execute only when the given condition is true. If the condition is false then the statements inside if statement body are completely ignored. Syntax: ![]() Example: Test it Now2) If else statementif-else statement also tests the condition. when if condition is true then print your if body statement, else part statement do not tuch. Otherwise if part statement is false then else block is executed. Syntax: Example: Test it Now3) if else if statementExecutes one condition in Multiple statements. Syntax Example: Test it Now |