You need to enable JavaScript to run this app.
JavaScript Visualizer 9000
Choose an Example
Run
Share
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function
logA
(
)
{
console
.
log
(
'A'
)
}
function
logB
(
)
{
console
.
log
(
'B'
)
}
function
logC
(
)
{
console
.
log
(
'C'
)
}
function
logD
(
)
{
console
.
log
(
'D'
)
}
// Click the "RUN" button to learn how this works!
logA
(
)
;
setTimeout
(
logB
,
0
)
;
Promise
.
resolve
(
)
.
then
(
logC
)
;
logD
(
)
;
// NOTE:
// This is an interactive vizualization. So try
// editing this code and see what happens. You
// can also try playing with some of the examples
// from the dropdown!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Built by
Andrew Dillon
. Inspired by
Loupe
.
Task Queue
About
Microtask Queue
About
Call Stack
About
Event Loop
About
1
Evaluate Script
2
Run a Task
3
Run all Microtasks
4
Rerender
Step