Tell us what’s happening:
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";
}
}
// Change this value to test
orderMyLogic(7);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/logical-order-in-if-else-statements