DEV Community

Discussion on: What’s a concept you understand now, but took you forever to grasp?

Collapse
 
tcchau profile image
tcchau

How to implement exponential back off with JavaScript callbacks. Once I got it working I copied the snippet of code into my snippets notebook and always, always had to just look it up every time I needed to implement it again.

Things got easier once Promises arrived and now with async/await it’s trivial.