Intermediate
TypeScript
Q67 / 100
How does TypeScript's structural typing differ from nominal typing?
Correct! Well done.
Incorrect.
The correct answer is A) Structural typing checks types based on their shape/members, regardless of declared name; nominal typing checks based on explicit type names
A
Correct Answer
Structural typing checks types based on their shape/members, regardless of declared name; nominal typing checks based on explicit type names
Explanation
TypeScript uses structural typing: two types are compatible if their members match, even if their declared names differ.
Progress
67/100