The use of the "Or" operator in javascript

Tell us what’s happening:

  **Your code so far**

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

if (val < || val > 20) {
  return "Outside";
}



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

testLogicalOr(15);
console.log(testLogicalOr())
  **Your browser information:**

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

Challenge: Comparisons with the Logical Or Operator

Link to the challenge:

You forgot to ask a question, but this isn’t the correct way to use the logical or operator.

how do I use.my code is not running and I’ve been Stuck on this challenge

Do you have any questions about the example provided?

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

I finally found a way around it. Thank you.

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