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:
https://www.freecodecamp.org/challenges/chaining-if-else-statements