What wrong with this test and please tell which is correct code for this test?

Tell us what’s happening:

Your code so far

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

if(val>20 || val<10){
  return "outside";

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

// Change this value to test

Your browser information:

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

Challenge: Comparisons with the Logical Or Operator

Link to the challenge:

The “o” should be uppercase. The code itself is good though.

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