Why on this and Why on that?

I think freeCodeCamp can do a better job at letting us know why on certain problem’s ! Why you would put this here or why you would use this ! Instead of them expecting us to know certain thing when we are learning how to do the programming language it doesn’t make sense ? If I had to grade them On that I would give them an F on it …

Comparisons with the Logical Or Operator

Combine the two if statements into one statement which returns “Outside” if val is not between 10 and 20, inclusive. Otherwise, return “Inside”.

changing: if (num > 10) {
return “No”;
}
if (num < 5) {
return “No”;
}
return “Yes”;

example: if (num > 10 || num < 5) {
return “No”;
}
return “Yes”;

answer: if ((val >= 10 || val == 10) && val <= 20) {
return “Inside”;
}
return “Outside”;
}

Nothing in the wording said to use both logical || and && it took hour’s to figure out …

I Did that and 0 and 9 would not take for some reason ?