Promises

Learning JavaScript Promises can be daunting because there is so much to know about how they work. The following is a very simple example that helped me get my head around them.

The code