Javascript callbacks

We know that normally a function returns some value after calling it. But sometimes the scenario is like we don’t want to wait for the…