Tell us what’s happening:
Gdje sam pogriješila?
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 (iPad; CPU OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.93 Mobile/15E148 Safari/604.1
.
Challenge: Chaining If Else Statements
Link to the challenge: