This is saying im wrong but im not...right?

Tell us what’s happening:

Your code so far

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

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

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


Your browser information:

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

Challenge: Comparisons with the Logical And Operator

Link to the challenge:

Replace the two if statements with one statement, using the && operator, which will return “Yes”…

You have a very tiny typo in your return value.

1 Like

Always double check your string output. FCC is kind of case sensitive in terms to string outputs.

Or, as I like to say it:

Programming is extremely case [and everything else] sensitive in terms of almost everything.


As @JeremyLT says, this has nothing to do with FCC. “Yes” is not “yes” to a computer.

thanks for the answers. i cant believe that it was that simple! i totally forgot to look over everything to make sure that the case was right.