The Uncharted Void
EasyAcc. 96.4%
+15 XP 5
Void Signals
Your scanners have returned two types of empty space. A Void (null) was intentionally marked as a dead end, while an Uncharted (undefined) sector simply hasn't been scanned yet.
- If the input
signalis "u", returnundefined. - If the input
signalis "n", returnnull. - For any other signal, return
false.
01EXAMPLE 1
Input
signal = "n"Output
nullExplanation: Intentional null value.
Constraints
- Return literal null or undefined.
- Do not use strings like "null".
FundamentalsTypes
JavaScriptSystem handles I/O — write your function only
Loading...
8 Hidden
Input Arguments
signal"u"
Expected Output
Click RUN to test your solution