De Morgan's Revenge
HardAcc. 54.2%
+55 XP 20
Negative Boundary Logic
Sometimes logic is defined by what it is not. In this challenge, we are looking for values that fall outside a specific safe zone.
Safe Zone: A number is "Safe" if it is between 10 and 20 (inclusive).
The Assignment
Your function receives two parameters: a and b.
- Return
trueonly if neitheranorbis in the Safe Zone. - If even one of them is in the Safe Zone, return
false.
01EXAMPLE 1
Input
a = 5, b = 25Output
trueExplanation: Both are outside the 10-20 range.
Constraints
- Use logical operators and comparisons.
- Return a boolean.
LogicBooleanMastery
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
a5
b25
Expected Output
true
Click RUN to test your solution