Basic JavaScript - Comparisons with the Logical And Operator

Tell us what’s happening:
Describe your issue in detail 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15

Challenge: Basic JavaScript - Comparisons with the Logical And Operator

Link to the challenge:

Can’t figure out my error :face_with_peeking_eye:

You should be returning Yes and not yes. Case Matters

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