Could someone explain, why do we use callback in JavaScript? I found examples, but they could be implemented by using the normal functions. What is the advantage of using it
A callback function is executed after the current effect is finished. A more detailed example available here.