Practice
Learn
← Quit
0 / 0 correct
JS / TypeScript
Medium
1 of 134
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
any is checked at runtime, unknown at compile time
C
unknown can only hold primitives
D
They are the same