Comparisons with the Logical And Operator help guys

Tell us what’s happening:
whats wrong ?

Your code so far


function testLogicalAnd(val) {
  // Only change code below this line

    if (val >= 25 && val <=25 ) {
      return "Yes";
    }
  // Only change code above this line
  return "No";
}

// Change this value to test
testLogicalAnd(10);

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator

Read the problem statement more carefully.

You have the right idea, but you did not read the problem statement carefully enough.

From the problem:

Combine the two if statements into one statement which will return "Yes" if val is less than or equal to 50 and greater than or equal to 25 . Otherwise, will return "No" .

hello camper, you have just to read carefully,you re not putting the right logic they want you to do ,as it mentionned in the challenge that the logical And operator should get true in any condition, so think again.

OH, sorry , my bad. thanks a lot for helping