PBS 81a Promises Demo

An example file for instalment 81 of the Programming by Stealth series.

Demo 1 - Parallel Promises

Click the button below to start 3 un-related promises which will run in parallel.

Demo 2 — Serial Promsies

Click the button below to start 3 chained promises which run in series.

Demo 3 — Parallel & Serial Promises Combined

Click the button below to start 3 chained promises which run in parallel and are passed to Promise.all() to create a fourth promise which will not resolve until all three parallel promiss do.

Output Area