Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does Javascript have enums? I've seen these stringly typed enums often in JS APIs.


...at least the native WebGPU C-API has "proper" enums for those.


Typescript does have enums




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: