Write, modify, and execute syntax examples directly in your browser.
1. Synchronous script starts 2. Synchronous script ends 3. Microtask (Promise resolution) 4. Macrotask (setTimeout callback)