Test not running - Comparisons with the Logical And Operator

Test not running - Comparisons with the Logical And Operator
0.0 0


This tutorial’s page is not running the test. Tried resetting the code several times. Also tried with my phone and still won’t run the test. Was having some similar issues in the lessons before this one. But managed to run the test on those. Not this one. (Won’t be able to advance until it’s figured out)

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

// Change this value to test

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10575.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:


Can you try on a desktop or laptop? I find the tests more predictable there.


It will not run, because you have a syntax error. The error is caused by you having an extra } after the if statement. Delete the extra } and the tests should run.


Got it, thanks. So used (or spoiled) to have a response when something is wrong (even syntax), that the lack of any response misled me. Thanks again…


If you would have looked at the browser’s console (Ctrl+Shft+J in Chrome) you would have seen the error.


Was -looking at the console- ever mentioned anywhere in the tutorial?


Yeah it is only mentioned in the debugging section which unfortunately comes later. go figure.


Not sure about debugging in the earlier sections of the new curriculum, but I believe they have added one later in the curriculum. Also, I believe they are working to add the console output back to the new site. Until then, you did the right thing and asked the forum about how to view possible errors without the old console feature.


You can also do right click --> inspect --> console (at the top).