Help Comparisons with the Logical And Operator

Help Comparisons with the Logical And Operator
0

#1

Tell us what’s happening:

I feel as if I have done what the instructions have asked of me, I however don’t get all green ticks. Can anybody tell me where I am going wrong.?

Thank you in advance.

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";
}

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:


#2

Check your relational operators. Can a value be less than 25 and greater than 50 at the same time?


#3

Thank you so much i saw what you meant and made the appropriate changes, thank you again for your help.:rofl: