setTimeout is a callback-style function. What would happen if we change that?

added by JavaScript Kicks
10/9/2018 8:27:48 AM

746 Views

Today it is common practice to transform node-style-callback functions into promise-style functions. So why haven't we done this for setTimeout? The main reason to prefer a promise-style function over a node-style-callback is to avoid Callback Hell. Nobody wants to see that.


0 comments