I need help with this challenge: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator . I’ve tried this:
function testLogicalOr(val) {
// Only change code below this line
if (!(val >= 10) || !(val <= 20)) {
"Outside";
}
// Only change code above this line
return "Inside";
}
testLogicalOr(15);
this:
function testLogicalOr(val) {
// Only change code below this line
if (!(val >= 10) || val <= 20)) {
"Outside";
}
// Only change code above this line
return "Inside";
}
testLogicalOr(15);
and this:
function testLogicalOr(val) {
// Only change code below this line
if (val >= 10 || val <= 20) {
"Outside";
}
// Only change code above this line
return "Inside";
}
testLogicalOr(15);
What do I have wrong?