Promise Retrying in JavaScript

Click the button below to demonstrate promise retrying: