Chaining If Else Statements - Help Please!

Tell us what’s happening:

Your code so far


function testSize(num) {
  // Only change code below this line
  else 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";
  // Only change code above this line
}

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

You need to start with an if statement, then after that the various else if, and you are missing all the curly brackets

if (...) { 
   ...
} else if (...) {
   ...
} else if (...) {
   ...
}

You’re missing the first if statement. elseif block can’t stand on it’s own without a starting if condition.