Tell us what’s happening:
Describe your issue in detail here.
testLogicalAnd(25)
should return the string Yes
testLogicalAnd(30)
should return the string Yes
testLogicalAnd(50)
should return the string Yes
better way to write a code
Your code so far
function testLogicalAnd(val) {
// Only change code below this line
if (val >24 && val < 51) {
return "yes";
}
// Only change code above this line
return "No";
}
testLogicalAnd(10);
console.log(testLogicalAnd(7));
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0
Challenge: Comparisons with the Logical And Operator
Link to the challenge: