Domanda di colloquio di Virtusa

Explain callback & event loop in Node.js

Risposta di colloquio

Anonimo

29 nov 2022

A callback function is called after a given task. It allows other code to be run in the meantime and prevents any blocking. Being an asynchronous platform, Node.js heavily relies on callback.