Intermediate TypeScript
Q48 / 100

What does "strictNullChecks" do when enabled?

Correct! Well done.

Incorrect.

The correct answer is B) Requires explicit handling of null and undefined; they are not assignable to other types unless included in a union

B

Correct Answer

Requires explicit handling of null and undefined; they are not assignable to other types unless included in a union

Explanation

With strictNullChecks, null and undefined have their own types and must be explicitly included in a type's union to be valid.

Progress
48/100