Doesn't Pass all the tests

The code I wrote, doesn’t pass all the test. It fails when test 15 and 17.

   **Your code so far**

function testSize(num) {
 // Only change code below this line
  if (num <5 && num >= 0){
   return 'Tiny';
 }
   else if (num >= 5 && num <10){
   return 'Small';
 }
   else if (num >= 10 && num <15){
   return 'Medium';
 }
   else if (num >=15 && num< 20){
   return 'Larg';
 }
else if (num >= 20){
   return 'Huge';
 }
 else {
return "Change Me";
 }


 
 // Only change code above this line
}

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

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

Challenge: Chaining If Else Statements

Link to the challenge:

This is probably a typo.

Oh my good, I worked on this issue more than one hour, but still couldn’t find the problem.
Thanks a lot for your help.
Yes I actually missed just e.

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