Practice
Learn
← Quit
0 / 0 correct
JS / TypeScript
Medium
1 of 20
In TypeScript, how does `unknown` differ from `any`?
A
any is checked at runtime, unknown at compile time
B
They are the same
C
unknown can only hold primitives
D
Any value can be assigned to unknown, but you must narrow it (typeof, instanceof, a type guard) before using it