I’m stuck here. HELP

Tell us what’s happening:

Your code so far

function testLogicalOr(val) {
 // Only change code below this line
if  (val < 10 || val > 20) {
   return "Outside";
   return "Outside";

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


Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Mobile/15E148 Safari/604.1.

Challenge: Comparisons with the Logical Or Operator

Link to the challenge:

You have two { return “Outside”; } code blocks. Which one do you really need?

1 Like