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