Tell us what’s happening:
I really need some help on this. I seem to have completed the code but it refuses o execute. What am I doing wrong? I totally stuck until I figure this out.
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(7);
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13310.93.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.133 Safari/537.36
.
Challenge: Introducing Else If Statements
Link to the challenge: