Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
console.log('1. Start'); // Next tick queue process.nextTick(() => console.log('2. Next tick')); // Microtask queue (Promise) Promise.resolve().then(() => console.log('3. Promise')); // Timer phase setTimeout(() => console.log('4. Timeout'), 0); // Check phase setImmediate(() => console.log('5. Immediate')); console.log('6. End');
1. Start 6. End 2. Next tick 3. Promise 4. Timeout 5. Immediate