Syntax error returned

I don’t understand why the test is not correct and why it is returning syntax error pleas help:

  **Your code so far**

function testLessOrEqual(val) {
if (val) {  // Change this line
  return "Smaller Than or Equal to 12";
}

if (val) {  // Change this line
  return "Smaller Than or Equal to 24";
}

return "More Than 24";
}

testLessOrEqual(10);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36.

Challenge: Comparison with the Less Than Or Equal To Operator

Link to the challenge:

This is the title of the challenge:
Challenge: Comparison with the Less Than Or Equal To Operator

But I cant see any less than or greater than sign in your code.

what syntax error are you getting? It doesn’t seem it should give one

SyntaxError: unknown: ‘return’ outside of function (10:2)

This is my code

if (val <=50 && val >= 25) { return "Yes"; }

that doesn’t correspond to the code in your first post - is the code giving the syntax error different from the code in the first post?

I don’t know what happened but this is the topic i wanted to post about " Comparisons with the Logical And Op"

please post your code and the link to the challenge so that we can help you