Tell us what’s happening:
it says something about Logical Order in If Else Statements and I can’t really understand what should I do in this case, so any explanations will be appreciated, Thank you.
**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(7);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
You have someone skimming your directions and applying them. If someone is applying the first part of that direction and it works, they have no reason to continue with the rest of that direction.
In your code you have said that if the number is less than 10 print this. Therefore, any number less than 10 will be what?