1if (condition1) {
2 // code to be executed if condition1 is true
3} else if (condition2) {
4 // code to be executed if the condition1 is false and condition2 is true
5} else {
6 // code to be executed if the condition1 is false and condition2 is false
7}
1function lessThan100(a, b) {
2 let sum;
3 if (a + b >= 100) {
4 result = false;
5 } else {
6 result = true;
7 }
8 return result;
9}