AlfieFeldspar / JSPromises

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:JavaScript 100.0%