Confused in Comparisons with the Logical Or Operator challenge

Confused in Comparisons with the Logical Or Operator challenge
0

#1
function testLogicalOr(val) {
  if (val>10||val<=20) {
    return "Outside";
  }
  return "Inside";
}
testLogicalOr(20);

#2

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.

You are mixing “Outside” and “Inside”. The function should return “Outside” when val is NOT between 10 and 20, inclusive (so 10 and 20 are still “Inside”).


#3

@akshayv97 Follow the add ups @BenGitter suggested, you need to check the value whether they are not between 10 and 20 .


#4

Thank you all guy’s for your help!