Setimmediate vs SetTimeout

// only on node.js! timeout vs immediate.js 
setTimeout(() => {
  console.log('timeout');
}, 0);

setImmediate(() => {
  console.log('immediate');
});
David Diamant