Link Search Menu Expand Document

Comparisons with the Logical And Operator

Summary

  • && allows multiple conditional statements to be set.

Final Code

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);