zero timeout javascript
snippet in javascript

zero timeout javascript

user9963

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

// plain log
// timeout log