Comparisons with the Logical Operator

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

  **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:

what string are you returning?


HI @superUser !

Welcome to the forum!

Small mistakes like this happen to all of us.

When a test is failing you will need to read the error message very carefully.
To @ilenia 's question, you will need to read through each character to make sure it matches exactly with what the test is expecting.

This is a good lesson on paying attention to the small details.
Hope that helps! :grinning:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.