2min chapter

Syntax - Tasty Web Development Treats cover image

We React to State of JS 2022

Syntax - Tasty Web Development Treats

CHAPTER

JavaScript - Replace All

There is a standard property called cause and apparently that's handy for if you catch an error and then want to throw your own. If you are connecting to a database this example MDN has you can throw your own but you can give it a descriptive message when you do throw that error. I never knew about that one. another one that's a decent uptick where a string that prototype that replays allBasically being able to replace all or match all in a string which is a shorthand for being able to do regex and replace on multiple instances of something throughout a string.

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