The Ultimate Truth
Medium+20 XP
Mission Briefing
The Oracle of Truth must strip away all illusions and return a pure, undeniable True or False regarding the artifact's power.
The Concept: Double Negation
The logical NOT operator (!) flips a truthy value to false and a falsy value to true. By using two of them side-by-side (!!), you flip it twice. This is a common shortcut to forcefully cast any value into a pure boolean.
The Objective
Your function receives a parameter input.
- Forcefully convert
inputinto a pure boolean using the!!operator. - Return the resulting boolean.
Constraints
FundamentalsLogic
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
input1
Expected Output
true
Click RUN to test your solution