Hi, How can I make testSize(7); to be input? So I can change the integer. I tried testSize(input); but gives false

Tell us what’s happening:
Describe your issue in detail here.

  **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 if (num >= 20) {
  return "Huge";
}
return "Change Me";
// Only change code above this line
}

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

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

Challenge: Chaining If Else Statements

Link to the challenge:

Not sure I understand you correctly, but you can change the integer that the function is called with, for example:

testSize(7);
testSize(13);
testSize(21);
testSize(0);

Hii~

you should first declare a var input to an integer and then call the variable input with the function

Hope this was helpful to you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.