If Else Statement in JavaScript
Conditional Statements The conditional statements are used to perform different actions for different decisions. Just like any other languages, JavaScript has the following conditional statements: if for specifying a block of code to be executed, when a specified condition becomes true else to specify a block of code to be executed, when the condition is false else … Read more