can a variable be an if statement in javascript code example
Example 1: javascript if
if (32 == 32) {
console.log('32 is equil to 32!');
}
Example 2: if statements javascript
if (pros < 10) {
console.log("LESS THAN 10 PROS!");
}
else if (pros < 5) {
console.log("LESS THAN 5 PROS!");
}
else {
console.log("How many pros are there?");
}