HARDEST JavaScript Interview Question Ever! Part 1

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

------------
Don't forget to subscribe and like the video if you enjoyed :)
Рекомендации по теме
Комментарии
Автор

The Most Underrated Video I've ever seen. Dude, this video should be the best suggestion for understanding the event-loop of JS.

mosaddikalimaruf
Автор

This was a cool lesson, but I wrote down how it would go before watching the video and it's pretty simple if you understand how setTimeout works/event queue in javascript. Really good book helping me out was secrets of the javascript ninja 2nd edition, recommend it for anyone with some javascript experience.

a_basic_beach
Автор

HARDEST part about this video was the explanation, which I ended up skipping. If you're the same, JUST RELAX YOU'RE DOING GOOD

sanchit
Автор

Great one! that let you really understand how the call stack works, thanx for your work.

nacimhoc
Автор

I knew it from started, btw i have taken jonas schmedtmann course from udemy and other online sources, am so happy that i knew the answer

maddy
Автор

great explanation!, the core idea was when the call stack is empty and something is in microstask it will pick the microtask as it has higher priority than task queue even if synchronous function is waiting to be executed. Correct me if Iam wrong

Omg_facts_ai
Автор

background music suites best for the question 😂 😂 😂 😂

jatinchourasia
Автор

One of the Best explanation for event loop and the BGM is awesome

KamalNayak
Автор

My browser prints different order than video shows at 3:58, why is that?
#1 main thread
#2 main thread
#1 promise 1
#2 promise 1
#1 timeout 1
#1 timeout 2
#1 promise 2
#2 timeout 1
#2 timeout 2
#2 promise 2

sj
Автор

10:23 is the most important thing is event loop will finish all microtaskqueue in one go whereas after each taskqueue execution it will re-run whole cycle again.First it was confusing to me show I am writing it here correct me if I am wrong. Thanks Mehul bhai.

harshilparmar
Автор

WOO HOOO got it right at first haha even though I have never focused on advanced concepts, tutorial was very informative, now I know how it works, thankss a lot

BharatSingh-zklx
Автор

Is there a part 2 for this video?
Great one BTW

basemm
Автор

The video was very insightfull ... background sound reminded me of movie Fight Club

abhisheksaxena
Автор

Very nice explanation.
Thank you very much!!

matheusfelizardo
Автор

why line 6 is before line 18, can you explain that pls

mengjunwang
Автор

Line 18 should print before line 6. How come promise prints before main thread is empty?

charithagoonewardena
Автор

Who puts music in tutorial videos?. and btw the output might differ on different browsers.

sheikhatif
Автор

great video, there is no part 2 i think

informatiquedz
Автор

Please dont add background music. It is really distracting .

dheerajnaik
Автор

If we call functions like below then output is different. Can you please explain that?

listener1();
listener2():


Here I am not adding event. Directly calling 2 functions one by one.

nilesh