Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function orderMyLogic(val) {
if (val < 10) {
return "Less than 10";
} else if (val < 5){
return "Less than 5";
} else {
return "Greater than or equal to 10";
}
}
orderMyLogic(11);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
function orderMyLogic(val) {
if (val < 10) {
return "Less than 10";
} else if (val < 5){
return "Less than 5";
} else {
return "Greater than or equal to 10";
}
}
orderMyLogic(4);