Pergunta de entrevista da empresa Crossover for Work

What is the behavior of setTimeout( () => {}, 0);

Respostas da entrevista

Sigiloso

4 de jul. de 2019

Run a no-op function after 0 ms (essentially in the next iteration of the event loop)

Sigiloso

30 de jul. de 2018

Immediately return an empty object.