zéro temporisation javascript

  setTimeout(() => console.log('timeout log'), 0);
  console.log('plain log');

// plain log
// timeout log
Mysterious Monkey