Pergunta de entrevista da empresa Virtusa

Explain callback & event loop in Node.js

Resposta da entrevista

Sigiloso

29 de nov. de 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.