Basic JavaScript - Comparisons with the Logical And Operator

Tell us what’s happening:
Describe your issue in detail here.
I have entered the code but I am unable to pass the test. Can anyone point me to what is happening here?
Your code so far

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

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

  // Only change code above this line
  return "No";
}

testLogicalAnd(10);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Basic JavaScript - Comparisons with the Logical And Operator

Link to the challenge:

It is only the tests that expect the response “Yes” that are failing. I would double check what you are returning.

The Y in “Yes” should be capitalized.

Thank you this solved the problem!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.