Basic JavaScript: Comparisons with the Logical And OperatorPassed

Tell us what’s happening:
Hi all,

I don’t understand how to get the value to return true, what am i missing?

what are the steps i should take to solve this problem?

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

// Change this value to test

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0.

Challenge: Comparisons with the Logical And Operator

Link to the challenge:

check the spelling of the string you are returning, it needs to match exactly to the required one also in capitalisation

1 Like

Ah, right. Thank you!