Skip to content
Advertisement

How to do an action after callback in node?

How to fire the final console.log AFTER the callback is finished.

JavaScript

Advertisement

Answer

The easiest way is to just log the final line from within the callback:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement