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