I want to work using promises, but I have a callback API in this format:
1. DOM load or other one time event:
// set to callback
.onload = function() ...
How to pass a parameter to a setTimeout() callback?
Here is my code where I'm trying to do that: