Comparisons with the Logical And Operator help please

I have deleted all the initial code and write my own code. Is there some error?
I guess that you cant write your own code in the excersises, but Im not sure about it. Help please.

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

return "No";

Your browser information:

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

Link to the challenge:

You want to use Val on both side of the operator. So && val >= 25

1 Like