Conditional Statements In JavaScript
In JavaScript we have the following conditional statements:
if
else
else if
Use if to specify a block of code to be executed, if a specified condition is true
example:
if (10 < 18) {
greeting = "Good day";
}
Use else to specify a block of c...
frontendblogs.hashnode.dev1 min read