Comparisons with the Logical And Operator

Someone help, I have reviewed the code but it’s not running.

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

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

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


This is not a valid comparison. You need to include ‘val’ in the right-hand side too.

if (val <= 50 && val >= 25)
1 Like

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