Tell us what’s happening:
Describe your issue in detail here.
Your code so far
if (val > 10 || val < 20)
return “Outside”
return “Inside”
function testLogicalOr(val) {
// Only change code below this line
if (val > 10 || val < 20) {
return "Outside";
}
{
}
// Only change code above this line
return "Inside";
}
;
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Comparisons with the Logical Or Operator
Link to the challenge: