JavaScript lab
Event loop
Step through the call stack, microtasks and tasks to see exactly when each callback runs.
In the async/await program, notice that the code after await is queued as a microtask. In the nested program, a microtask queued inside a task still runs before the next task.
Learn the concept
The lesson this lab comes from, with the explanation, a practice task and a quiz.
More labs
All labs- GoGo channelsSend, receive and close on buffered and unbuffered channels and see who blocks, and when.
- SQLSQL joinsRun INNER, LEFT, RIGHT, FULL and CROSS joins on the same two tables and compare the rows.
- SQLIndex vs sequential scanCount the pages a sequential scan and a B-tree index lookup read to find one row.