function testSize(num) {
// Only change code below this line
if (num >= 20){
return "Huge";
}
else if (num < 20){
return "Large";
}
else if (num < 15){
return "Medium";
}
else if (num < 10){
return "Small";
}
else if (num < 5){
return "Tiny";
}
// Only change code above this line
}
I have thought about the logical order of things, but somehow when running the test, it says that
testSize(0) should return "Tiny"
I know I reversed the order on purpose, but shouldn’t “0” still return “Tiny” because it fails the first few conditions?