Comparison with the logical and oprater

Tell us what’s happening:
Describe your issue in detail here.
it doesn’t want to run I am lost

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


  **Your browser information:**

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

Challenge: Comparisons with the Logical And Operator

Link to the challenge:

Hi @siba45 !

It doesn’t want to run because you should be seeing this in the console right now.

Whenever you have syntax errors, your program won’t run.

It is not running because you added an extra curly brace here

Get rid of the extra one and the test will pass.

1 Like

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