
JavaScript 同时使用if、else if 语句
function myTest(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";
}
return "Change Me";
// Only change code above this line
}
// Change this value to test
myTest(7);