Code is returning as incorrect:
My code is returning as incorrect and I unable to see why. The problem is with the testElseIf section. Is anyone able to assist? Thank you.
**Your code so far**
function testElseIf(val) {
if (val > 10) {
return "Greater than 10";
} else if (val < 5) {
return "Smaller than 5";
} else {
return "Between 5 and 10";
}
testElseIf(11);
testElseif(4);
testElseif(7);
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
Challenge: Introducing Else If Statements
Link to the challenge: