Basic JavaScript - Comparisons with the Logical And Operator

Tell us what’s happening:
Describe your issue in detail here.

Cant figure out my error

Your code so far

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

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

  // 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:

You are not asked to return the string "true".
Read the instructions carefully.

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