Angular

Watch User Created Playlist (1)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Error handling in JavaScript (ES6) generators

P
javascript tutorial about Error handling in JavaScript (ES6) generators

Error handling in JavaScript (ES6) generators

2:16 javascript PRO

One can throw an error in a generator from the outside with it.throw(). Since all the code inside of a generator is synchronous, we can use the standard try/catch method of handling errors!

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?