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.

  1. Forcefully convert input into a pure boolean using the !! operator.
  2. Return the resulting boolean.

Constraints

    FundamentalsLogic
    JavaScript
    Loading...
    3 Hidden

    Input Arguments

    input1

    Expected Output

    true

    Click RUN to test your solution