Tell us what’s happening:
Describe your issue in detail here.
Hello,
I think this statment is wrong " The logical or operator (||
) returns true
if either of the operands is true
Otherwise, it returns false
"
if we have "ture or false " does it return false ???
I know in jave returns true , isnt ?
thank you
Your code so far
function testLogicalOr(val) {
// Only change code below this line
if (val) {
return "Outside";
}
if (val) {
return "Outside";
}
// Only change code above this line
return "Inside";
}
testLogicalOr(15);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Challenge: Basic JavaScript - Comparisons with the Logical Or Operator
Link to the challenge: