Using setTimeout on promise chain
The built-in function setTimeout uses callbacks. How can we create a promise-based alternative that can then be chained. We will need to use promise that would be resolved after ms milliseconds, so that we can add .then to it, like this:
function de...
plasebo.hashnode.dev1 min read