DEV Community

Cover image for What are JavaScript Callbacks Anyway?

What are JavaScript Callbacks Anyway?

Friday Godswill on October 19, 2017

Imagine you have a car, and the car breaks down, but this car is really important to you because you need it to go to work the next day. So you cal...
Collapse
 
sairam459 profile image
sairam459

Promises are preferred to avoid callback hell and much simpler is async await operations

Collapse
 
faradayyg profile image
Friday Godswill

Thank you, sairam459.
I did mention Promises as being an easier way, but didn't mention the async await operations.