</>
Skill
Recall
RECALL WHAT YOU KNOW
Library
Planner
Daily Recall
Why SkillRecall
More
About
News
Contact
Sign in
Explore Library
Create free account
Prepare for an interview
Explore Library
Quiz
Beginner
Save
unknown Versus any
Comparing the safer unknown type to any.
How does 'unknown' differ from 'any' in TypeScript?
A
'unknown' requires a type check before you can operate on it, unlike 'any'
B
'unknown' and 'any' behave identically
C
'unknown' can only hold numbers
D
'unknown' disables all type checking more than 'any'