Clarification on this one please!

Tell us what’s happening:
Describe your issue in detail here.
Hi guys! I’m just wondering why the last section where it is num num >= 20 is asking for me to say “else if” rather than “else” is there a reason why?

  **Your code so far**

function testSize(num) {
// Only change code below this line
if (num < 5) {
return "Tiny"
} else if (num < 10) {
return "Small"
} else if (num < 15) {
return "Medium"
} else if (num < 20) {
return "Large"
} else if (num >= 20) {
return "Huge"
}

return "Change Me";
// Only change code above this line
}

testSize(7);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15

Challenge: Chaining If Else Statements

Link to the challenge:

I just tested it using an else clause and it passed for me.

Maybe you need to get rid of this line here

Then you can try again with an else clause instead of that last else if and see if it passes on your end.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.