DEV Community

Discussion on: Introduction to TypeScript Data Types — Tuple, Enum, and Any

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

How is Enum interop with JavaScript? Why not String with predefined values?

Collapse
 
aumayeung profile image
John Au-Yeung

It's just converted back to the usual JavaScript data types depending on the value you assigned the enum to.