JS Party: JavaScript, CSS, Web Development cover image

What's next in JavaScript (a TC39 update)

JS Party: JavaScript, CSS, Web Development

00:00

Promises with Resolvers

A resolver function makes it easier to construct promises by requiring a function to be passed to the promise constructor. Within this function, resolve and reject functions are used to handle successful or failed promises respectively. The idea is to promote the correct usage of promises and to ensure proper error handling by catching exceptions within the callback function instead of letting them propagate.

Play episode from 38:48
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app