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
/
The event loop
What does a 20 ms setTimeout delay guarantee?
from The event loop
Node 24
beginner
1 min
What does a 20 ms setTimeout delay guarantee?
The callback cannot become eligible before the threshold, but it may run later.
The callback begins exactly 20 ms after registration.
The callback interrupts any JavaScript currently on the stack after 20 ms.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in notification delivery
Spot the bug
A new version is available
Reload