IF statement in JavaScript
IF Statement
if statement verifies the given condition and if the condition is true, then the code inside the If statement is executed. If the code is not true, then the inside code will not be executed.
Syntax:-
if(condition==true){
// code here will be executed
}