Comparisons with the Logical And Operator

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

  if (val >24 && val< 80) {
     {
      return "Yes";
    }
  }

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

testLogicalAnd(10);
  • testLogicalAnd(51) should return the string No

  • Failed:testLogicalAnd(75) should return the string No

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

1 Like

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