Comparisons with the Logical Or Operator - Free Code Camp

preview_player
Показать описание
In this basic JavaScript tutorial we go over comparisons with the logical OR operator. This is part of me going over the FreeCodeCamp curriculum. Enjoy!
Рекомендации по теме
Комментарии
Автор

This was a difficult one Mr. Ian but thanks for going through it slowly so I can understand what I am suppose to be doing.

zken
Автор

lol I love how I got this right on the first try and Im watching the video along and its still not passing . made me feel a bit smarter for a sec hahaha

colombian
Автор

function testLogicalOr(val) {

// Only change code below this line


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

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

how so? isn't a number between 10 and 20 return "outside?
if (val < 10 || val >20) {
return "Outside";
}

wnetftj