What is the IF statement And Switch Statement in JavaScript?
If Statement It is used to execute an instruction or block of instructions only if a condition is fulfilled. Syntax: – If statement with logical operator If else Statement if… else statement is used when a different sequence of instructions is to be executed dependingon the logical value(True/False) of the condition evaluated. Syntax: – Else … Read more