How to pass a parameter to a setTimeout() callback?
This is my code where I'm trying to do that:
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() ...