function logA() { console.log('A') }; function logB() { console.log('B') }; function logC() { console.log('C') }; function logD() { console.log('D') }; function logE() { console.log('E') }; function logF() { console.log('F') }; function logG() { console.log('G') }; function logH() { console.log('H') }; function logI() { console.log('I') }; function logJ() { console.log('J') }; logA(); setTimeout(logG, 0); Promise.resolve() .then(logC) .then(setTimeout(logH)) .then(logD) .then(logE) .then(logF); setTimeout(logI); setTimeout(logJ); logB();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter