Stuck on Chaining If Else statements

can anyone explain to me why this wont pass? What am I doing wrong?
this is the error code it’s throwing me:

SyntaxError: unknown: Unexpected token (6:1)
  4 | if (num < 5){return "Tiny"};
  5 | 
> 6 |  else if(num < 10){return "Small"};
    |  ^
  7 | 
  8 |  else if(num < 15){return "Medium"};
  9 | 
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”};

// Only change code above this line

}

// Change this value to test

testSize(7);

You shouldn’t put semicolons after if statements.

1 Like