DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
TypeScript
Why does a heavily-typed TypeScript function run exactly as fast as an untyped equivalent at runtime?
A
It doesn't — typed functions are always slower
B
Types are fully erased at compile time, so both compile to identical JavaScript with no runtime type-checking overhead
C
TypeScript optimizes typed functions specially
D
Only interfaces are erased, not type aliases
Check Answer