Intermediate TypeScript
Q43 / 100

Given "interface Point { x: number; y: number; }", what is the type of "keyof Point"?

Correct! Well done.

Incorrect.

The correct answer is B) "x" | "y"

B

Correct Answer

"x" | "y"

Explanation

keyof Point evaluates to the union of the property name string literals: "x" | "y".

Progress
43/100