Changing If Else statements

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
}

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

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13421.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.

Challenge: Chaining If Else Statements

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

2 Likes