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