Skip to content

A reference repo illustrating JS syntax for promises. Contains paired JS files, one containing modules to be exported, the other importing them.

Notifications You must be signed in to change notification settings

AlfieFeldspar/JSPromises

Repository files navigation

JSPromises

A reference repo containing paired javascript files to illustrate syntax for native (ES6) promises (=asynchronous processes), including new Promise, .then, .catch, async...await (ES8), and executor functions. One file contains modules that are exported to the paired ...app.js file, which requires them in.

'catchAsync' - checks inventory for shop items (sunglasses, pants, bags); error handling using catch if supply is not adequate.

'promiseAllConcurr' - checks inventory using promise.all so inventory for each (sunglasses, pants, bags) is checked concurrently. When they all resolve, response is delivered.

About

A reference repo illustrating JS syntax for promises. Contains paired JS files, one containing modules to be exported, the other importing them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published