Which of the following is an IF statement in JavaScript? code example
Example: function if else javascript
function lessThan100(a, b) {
let sum;
if (a + b >= 100) {
result = false;
} else {
result = true;
}
return result;
}
function lessThan100(a, b) {
let sum;
if (a + b >= 100) {
result = false;
} else {
result = true;
}
return result;
}