-
- Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
new-exampleA proposal of the new exampleA proposal of the new example
Description
Example
setTimeout with 0 for delay
setTimeout(() => { console.log("A"); }, 0); console.log("B"); Explanation
setTimeout being a part of the Web APIs, maintains its own call stack and then pops its callbacks to the callback/task queue. Only when the traditional call stack is empty, does JavaScript refer to the callback queue.
Metadata
Metadata
Assignees
Labels
new-exampleA proposal of the new exampleA proposal of the new example