Event Loop in Node.js | 15 JavaScript Interview Code Questions

preview_player
Показать описание

What You’ll Learn:
- Difference between Call Stack, Task Queue, and Microtask Queue
- Real coding examples you may face in interviews

Links:

⌚️Timestamps:
0:00 Introduction
0:45 setTimeout(), timers phase
2:36 Input/Output events, poll phase
3:13 setImmediate, check phase
4:01 setTimeot and setImmediate
5:02 setTimeot and setImmediate inside I/O events
8:17 Example 8: Promise, microtask queue
8:41 I/O events, Promise, and setTimeout
10:01 Example 11
10:55 Example 12
14:05 Example 15: blocked event loop

💬 Have questions? Drop them in the comments below! Don't forget to like, share, and subscribe for more.

#Nodejs #EventLoop #JavaScriptInterview #AsyncJS #JavaScriptTips #WebDevelopment
Рекомендации по теме
Комментарии
Автор

⌚Timestamps:
0:45 setTimeout(), timers phase
2:36 Input/Output events, poll phase
3:13 setImmediate, check phase
4:01 setTimeot and setImmediate
5:02 setTimeot and setImmediate inside I/O events
6:13 Example 6: process.nextTick
7:13 process.nextTick with fs.readFile and setTimeout
8:17 Example 8: Promise, microtask queue
8:41 I/O events, Promise, and setTimeout
9:24 I/O events, Promise, setTimeout, and process.nextTick
10:01 Example 11
10:55 Example 12
12:33 Example 13:queueMicrotask and Promise.resolve
13:26 queueMicrotask, Promise.resolve, and process.nextTick
14:05 Example 15: blocked event loop

DevWebApp
visit shbcf.ru