Chaining If Else Statements (help please)

Chaining If Else Statements (help please)
0.0 0

#1

Tell us what’s happening:

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(4);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:


#2

tiny needs to be Tiny


#3

Ohh shit very silly mistake made by me!!!
thanks:grinning:


#4

U r wlcom :slight_smile: