Do not under stand what is the bug

I am struggling with this You should not change the code above or below the specified comments. but what dose this mean? I did not change above or below
but It says that I did where did I go wrong :thinking:?

  **Your code so far**

function testElse(val) {
var result = "";
// Only change code below this line

if (val > 5) {
  result = "Bigger than 5";
} else (val < 5) {
  result = "5 or Smaller";
}

// Only change code above this line
return result;
}

// Change this value to test
testElse(4);

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Challenge: Introducing Else Statements

Link to the challenge:

  **Your code so far**

function testElse(val) {
var result = "";
// Only change code below this line

if (val > 5) {
  result = "Bigger than 5";
} else (val < 5) {
  result = "5 or Smaller";
}

// Only change code above this line
return result;
}

// Change this value to test
testElse(4);

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Challenge: Introducing Else Statements

Link to the challenge:

Take a look at this. Is there something missing?

Nope I don’t think so @Slimattcode !

If you compare with this?

to me nothing strange @Slimattcode !

The smallest words are often very important. You are missing: else if (). :sweat_smile:

but can’t I just use the else?

You can but then don’t have a condition after it.

OK @Slimattcode ! thank you for the reply

1 Like

wait a minute it says: SyntaxError: unknown: Missing semicolon.
but It is not the error!

Can you post your code?

what do you mean
@Slimattcode ?!?

What did you change to your code?

I am using the computer and how do I post my code?!?

Copy and paste, should work.

only the else part to elif

Else if (val < 5) {code} 

Did you use this?

nope but Elif (val < 5) {code}

This is not correct.

yes I mean it @Slimattcode !