js es6 if elseif code example
Example 1: if and if and else javascript
if (expression 1) {
Statement(s) to be executed if expression 1 is true
} else if (expression 2) {
Statement(s) to be executed if expression 2 is true
} else if (expression 3) {
Statement(s) to be executed if expression 3 is true
} else {
Statement(s) to be executed if no expression is true
}
Example 2: javascript if
if (32 == 32) {
console.log('32 is equil to 32!');
}