Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
JavaScript
A script queues a zero-delay timer, queues `Promise.resolve().then(() => log.push("microt…
from JavaScript
beginner
1 min
A script queues a zero-delay timer, queues `Promise.resolve().then(() => log.push("microtask"))`, and then pushes `"sync"`. Which final order is correct?
`["sync", "microtask", "timer"]`
`["sync", "timer", "microtask"]`
`["microtask", "sync", "timer"]`
Check
Ask AI about this kata
Report an error
previous kata
Two requests are independent. Which form starts both before waiting and preserves both re…
Quiz
next kata
Name the initial state of a newly created Promise before it settles
Fill in
A new version is available
Reload