Explain it in 60 seconds
any vs unknown
Frontend Engineering · TypeScript · Beginner
What is the difference between any and unknown?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- any disables type checking.
- unknown accepts anything but requires narrowing before use.
- Prefer unknown for untrusted data.
- any spreads silently.
- Lint against any.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.