scrimba
Learn Basic JavaScript
Comparisons with the Logical Or Operator
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Comparisons with the Logical Or Operator
AboutCommentsNotes
Comparisons with the Logical Or Operator
Expand for more info
index.js
run
preview
console
function testLogicalOr(val) {
// Only change code below this line

if (val < 10 ) {
return "Outside";
}

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

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

// Change this value to test
testLogicalOr(15);
Console
index.html
-0:52