- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Promise Chains 🤯Same Time or Different Order? #coding #frontendcourse #python #codeprep #jsinterview
🤔 What will be the output of this code?
Options:
A) A B C D
B) A C B D
C) C D A B
D) B D A C
👇 Correct Answer:
👉 B) A C B D
💡 Explanation:
👉 Tick 1 (Microtask Queue):
* First .then() of both Promises run → A, C
👉 Tick 2 (Next Microtasks):
* Chained .then() run → B, D
🎯 Final Output:
A
C
B
D
🚀 Key Insight:
👉 Each .then() schedules a NEW microtask
👉 Promise chains don’t execute fully in one go — they interleave!
📌 Advanced concept asked in JS interviews
#javascript #eventloop #promises #microtask #codinginterview
#javascript #eventloop #promises #microtask #asyncjavascript #jsinterview #webdev #frontend #coding #learnjavascript #developer #tech #advancedjavascript #shorts
Видео Promise Chains 🤯Same Time or Different Order? #coding #frontendcourse #python #codeprep #jsinterview канала STACKCAART
Options:
A) A B C D
B) A C B D
C) C D A B
D) B D A C
👇 Correct Answer:
👉 B) A C B D
💡 Explanation:
👉 Tick 1 (Microtask Queue):
* First .then() of both Promises run → A, C
👉 Tick 2 (Next Microtasks):
* Chained .then() run → B, D
🎯 Final Output:
A
C
B
D
🚀 Key Insight:
👉 Each .then() schedules a NEW microtask
👉 Promise chains don’t execute fully in one go — they interleave!
📌 Advanced concept asked in JS interviews
#javascript #eventloop #promises #microtask #codinginterview
#javascript #eventloop #promises #microtask #asyncjavascript #jsinterview #webdev #frontend #coding #learnjavascript #developer #tech #advancedjavascript #shorts
Видео Promise Chains 🤯Same Time or Different Order? #coding #frontendcourse #python #codeprep #jsinterview канала STACKCAART
Комментарии отсутствуют
Информация о видео
27 апреля 2026 г. 9:02:01
00:00:22
Другие видео канала










![[] == ![] in JavaScript 🤯 | Type Coercion Explained (JS Interview Question) #programming](https://i.ytimg.com/vi/sh46pymnbjo/default.jpg)
![[0] == 0 in JavaScript 🤯 | Type Coercion Explained (JS Interview Question) #programming #smartphone](https://i.ytimg.com/vi/NE-8hMxfYS0/default.jpg)








![[] == [] in JavaScript 🤯 | Type Coercion Explained (JS Interview Question) #programming #smartphone](https://i.ytimg.com/vi/NnPOwhkMM0A/default.jpg)