javascript if else statement function code example
Example 1: javascript if
if (32 == 32) {
console.log('32 is equil to 32!');
}
Example 2: javascript if elseif
if (condition) {
} else if (other_condition) {
} else {
}
if (32 == 32) {
console.log('32 is equil to 32!');
}
if (condition) {
} else if (other_condition) {
} else {
}