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...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
Node.js
Why do TypeScript enums throw ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX under plain type-stripping, while interfaces don't?
A
Enums are simply not implemented yet, arbitrarily
B
Enums generate real runtime code (an object mapping names to values), so they can't be purely ERASED the way interfaces (which produce zero runtime code) can
C
Interfaces are actually slower than enums
D
There's no real difference — this is a bug
Check Answer