Introducing Else If Statements Help

Tell us what’s happening:

I really need some help on this. I seem to have completed the code but it refuses o execute. What am I doing wrong? I totally stuck until I figure this out.

Your code so far

function testElseIf(val) {
if (val > 10) {
  return "Greater than 10";
} else if (val < 5) {
  return "Smaller than 5";
} else {
 return "Between 5 and 10";


Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13310.93.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.133 Safari/537.36.

Challenge: Introducing Else If Statements

Link to the challenge:

count the parenthesis

1 Like

I see 6 pairs of parenthesis and seven brackets, but they are all in their proper places, no?

there’s something you need to end the function with, not only the else statement, look at the console and see it writes you "required/expected “}” "

Thank you so much, that did it!