Comparisons with the Logical And Operator!help

Comparisons with the Logical And Operator!help
0

#1

Tell us what’s happening:

What i did wrong?

Your code so far


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

  if (val>= 25 && val<= 50) {
    
  }

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

// Change this value to test
testLogicalAnd(10);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-and-operator


#2

You did not wrote return "Yes"


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

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

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

// Change this value to test
testLogicalAnd(10);

#3

Thank you, im in annatentive(