Else If statements

Tell us what’s happening:
I copied the same as the video tutorial I’m not sure what is wrong with my code. can anyone help me please. Thank you

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 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Introducing Else If Statements

Link to the challenge:

you have not closed the function

1 Like

Here’s an extra } use it with care :slight_smile: