Comparisons with the logical Operator confusion

Tell us what’s happening:
Describe your issue in detail here.

I have no clue as to why my code isnt passing, or doing anything, I checked the hint and the video and they seem exactly the same but it’s possible I have blinders on and could be missing something really obvious?

  **Your code so far**
function testLogicalAnd(val) {
// Only change code below this line

if (val <= 50 && >= 25) {
    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; rv:101.0) Gecko/20100101 Firefox/101.0

Challenge: Comparisons with the Logical And Operator

Link to the challenge:

The expression on each side of the && needs to be a full and complete comparison. Compare your code with the example:

if (num > 5 && num < 10) {

thank you so much, I was totally oblivious to the solution there

Just in case you missed it, the Syntax Error that shows up in the console tells you exactly where there’s a problem.

> 4 | if (val <= 50 && >= 25) {
    |                  ^

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