2min chapter

Syntax - Tasty Web Development Treats cover image

Potluck × Warp × Skeleton UI × Edge Functions × Donut Scoping

Syntax - Tasty Web Development Treats

CHAPTER

Enums in JavaScript

I used to be on the side of yeah enums totally fine I'm more than happy to use enums in fact You'll still find enums in the level of code base because I'm not gonna refactor it. So I don't love your approach of just using an object and as const Uh, I think I'll just do that from now on because I do really like being able to Do comparisons and not use strings Yeah, you know, I I like that. It worked fine for me but yeah, I was under the Incorrect assumption that enums would eventually make their way into JavaScript But the more you look into it there's no proposal. There's not a stage zero

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode