Tell us what’s happening:
what part of the last “else” isnt fitting here? test wont pass final 2 conditions, made several checks and then checked for help, answers look the same right?
also, system keeps bringing up a syntax error at the bottom AFTER “testSize(7);” where is shows the arrow pointing at a space after the final code, but nothing is there and i cant delete the space. “unexpected token”. how do you fix that…?
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 (null < 20) {
return "Large";
} else {
return "Huge";
}
// Only change code above this line
// Change this value to test
testSize(7);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.
bugger okay i see that, my bad. however i still have that weird syntax error at the bottom (see my first reply with pic). i havent edited anything below the lines, and i cant do any deleting after the “;” where that empty token would be. ideas? thanks :))
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 (null < 20) {
return "Large";
} else {
return "Huge";
}
}
// Only change code above this line
// Change this value to test
testSize(7);
ight the Null got me on the damn auto fill, fixed that and the braces and it has still given me the shitty syn error. copy pasted after reloading the page and now it works. i guess i had just effed with it so much it got messed up somewhere else and jammed up even though the then fixed code was right (since pasted it worked) anywho, i just got to posting this and now im 4 challenges passed this one now. thanks y’all for fixing my stupid lol