Logical and Operator

Tell us what’s happening:

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 (X11; CrOS x86_64 13020.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36.

Challenge: Comparisons with the Logical And Operator

Link to the challenge:

Hello. You forgot to Tell us what’s happening. What do you want help with?

I was getting a simple syntax error saying my return was outside the function but i fixed it

Remove one of the two " }" before (return “No”) so that only one remains and try again!

Thank You I fixed it