Basic JavaScript - Comparisons with the Logical And Operator

What’s wrong with my code?

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 (Linux; Android 13; 23028RNCAG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36

Challenge: Basic JavaScript - Comparisons with the Logical And Operator

Link to the challenge:

Delete the last closing curly brace shown above.

2 Likes

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!

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