Intermediate TypeScript
Q53 / 100

What does the "satisfies" operator (introduced in TS 4.9) do?

Correct! Well done.

Incorrect.

The correct answer is B) Validates that an expression matches a type without changing the expression's inferred type

B

Correct Answer

Validates that an expression matches a type without changing the expression's inferred type

Explanation

satisfies checks that a value conforms to a type while preserving the more specific inferred type, unlike a type annotation which widens it.

Progress
53/100