Salesforce JavaScript Developer Practice Exam 2025 – 400 Free Practice Questions to Pass the Exam

Image Description

Question: 1 / 400

What is the output of the expression !!null;

false true false

false false true

The expression !!null is a double negation of the value null. In JavaScript, the logical NOT operator `!` converts a value to its boolean equivalent and then negates it.

When you apply the first negation `!null`, the null value is coerced to a boolean. Since null is a falsy value, `!null` evaluates to true. Then, applying the second negation with another `!`, you negate true, resulting in false.

Thus, the final output of the expression !!null is false. This understanding aligns with the evaluation of its logical truthiness and the behavior of the NOT operator in JavaScript. Other choices do not accurately reflect the result of negating null twice.

Get further explanation with Examzify DeepDiveBeta

false true true

true true false

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy