Chaining If Else Statements1

Chaining If Else Statements1
0.0 0

#1

tell me what going wrong with that code

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
    return "huge";
 
  // Only change code above this line
}

// Change this value to test
testSize(25);

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements/


#2

change “huge” to “Huge”


#3

And medium to Medium :wink:


#4

I changed but it tell me that:
testSize(10) should return “Medium”
testSize(14) should return “Medium”


#5

Help me it is so easy :rofl::rofl:


#6

thank you it is so easy thank you a lot