Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for ✨♻️ JavaScript Visualized: Event Loop

✨♻️ JavaScript Visualized: Event Loop

Lydia Hallie on November 20, 2019

If you're here in 2024 (or later), here's an updated blog post!](https://lydiahallie.com/blog/event-loop)Oh boi the event loop. It’s one o...
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
logan70 profile image
Logan
  • Location
    ShenZhen,China
  • Work
    Front-end Enginner at ShenZhen,China
  • Joined

Hi, Lydia Hallie, it is a great article.

Can I translate this article into Chinese to help more Chinese developers(With original author and link, of course).

CollapseExpand
 
lydiahallie profile image
Lydia Hallie
Software eng who likes to visualize technical concepts in my free time 🕺🏼 (I use Keynote..)
  • Joined

Absolutely!

CollapseExpand
 
Sloan, the sloth mascot
Comment deleted
CollapseExpand
 
diegolepore profile image
Diego Palacios Lepore
  • Joined

Hi, Lydia!

This is such a great article! 😃

I was looking a clear post about this subject and yours is super comprehensive and well explained (btw, I loved the gifs). I'm planning to talk to my team about the event loop soon (in spanish).

I'm sure you might have heard about this tool that helps you play with this cycle and see in real time how it goes:

latentflip.com/loupe

CollapseExpand
 
q118 profile image
Shelby Anne
  • Joined

woah that tool is awesome!

CollapseExpand
 
ayaz profile image
Muhammad Ayaz
I am a skilled Web3 developer with expertise in building decentralized applications (dApps), smart contracts, and blockchain integrations. Let's Connect :https://www.linkedin.com/in/ayazflipsbiz/
  • Email
  • Location
    Islamabad
  • Work
    Full Stack Developer | WEB3 | AI | PMP
  • Joined

The tool is amazing, if we have 2 aysnc functions, the web api section will only show the latest one

CollapseExpand
 
sherlockliu profile image
Sherlock
  • Joined

Amazing tooling!!!

CollapseExpand
 
miodragdz profile image
Miodrag Dzamic
  • Joined

I tried to copy paste some code into tool and it does not save after clicking Save+Run button. Does someone else has same issue? Thanks!

CollapseExpand
 
karataev profile image
Eugene Karataev
undefined is not a function
  • Location
    Russia, Novosibirsk
  • Joined

Thanks for the great article and animations!
It's interesting why "event loop" question is so common on interviews, if it's job is just to transport code blocks from the queue to the call stack. I think better question would be to ask to describe how the JS mechanism works as a whole thing with call stack, web api, queue and event loop.

CollapseExpand
 
rafaelbeckel profile image
Rafael Beckel
Dad, Entrepreneur, Software Engineer, Hacker and Tinkerer
  • Location
    Germany
  • Work
    Software Engineer at NewStore
  • Joined

Interesting article! What did you use to animate the gifs?

CollapseExpand
 
lydiahallie profile image
Lydia Hallie
Software eng who likes to visualize technical concepts in my free time 🕺🏼 (I use Keynote..)
  • Joined

As a true professional I use keynote and screen record it lol

CollapseExpand
 
squidbe profile image
squidbe
  • Joined

Professional enough!

CollapseExpand
 
thebilson profile image
thebilson
Hello world!I'm Bill and I recently decided to stop making excuses and start learning to code. It's good to be here.
  • Location
    Buffalo, NY
  • Work
    Technical Recruiter at ComputerPeople Staffing
  • Joined

I'm also a visual learner, so this was very helpful. I'm still early on with JavaScript and it's challenging to understand it all; are there any books out there for us visual learner that you might recommend?

CollapseExpand
 
toanoop profile image
Anoop Sivadas
I' m a software Developer working in IBM Mainframe technology stack
  • Joined

Try the book written by a John duckett

CollapseExpand
 
ocalde profile image
Oscar Calderon
  • Location
    El Salvador
  • Work
    Senior Backend Developer at NY Startup
  • Joined

Hi Lydia. Thanks for taking the time of generating these animations in order to explain it in a very simple way. Still, I have doubts regarding the Call Stack. Is it the same as the main thread in which JS runs? I mean, I understood that, although JS is single threaded, but for the asynchronous logic that gets executed, NodeJS would spawn threads for it while processing the main logic in the single thread. Thanks in advance :)

CollapseExpand
 
codefinity profile image
Manav Misra
I'm a JS Subject Matter Expert (SME) that has spent the past few years spearheading curricula and teaching initiatives at colleges and bootcamps, in person and virtually.
  • Location
    62236
  • Education
    BS - Mech. Eng. - Missouri S&T
  • Joined

This is a great ❓, but probably gets a bit more 'low-level' than we need to just understand the behavior of our JS code with relation to the event loop.
However, my understanding is that the JS Engine/Runtime Environment consists of only the stack and the heap. The stack is what is 🏃🏽‍♂️on that single thread. Meanwhile, that message queue is part of the asynchronous browser environment. So, JS's single thread runs through call stack on its single thread and then checks that mesage queue to see what else needs to be done on its thread when it has the chance.

CollapseExpand
 
avneeshroks profile image
avneeshroks
  • Joined

I think in case of NodeJs, it's just the c++ Api's Insted of web/browser's Api.

CollapseExpand
 
sebasqui profile image
SebasQuiroga
I am a software engineer focus on developing robust systems in the cloud and sometimes even on earth.
  • Location
    Colombia
  • Work
    SW Specialist
  • Joined

Hi@avneeshroks , I have recently cloned and run the NodeJS code and effectively C/C++ are dominant.
Remember that NodeJS is on top of the V8 engine (the one used in the Chrome browser) that Google opensourced and it is natively written in C++, running in the browser and running in a server are two different environments with different purposes and indeed different APIs. NodeJS is literally running on the same engine than Chrome, but for NodeJS it is not needed to have APIs such as those for the DOM, Window, etc as Chrome needs.

CollapseExpand
 
rjmunhoz profile image
Rogério Munhoz (Roz)
  • Location
    São Paulo
  • Work
    Software Engineer
  • Joined

Awesome article! This has helped me a lot!

I was thinking about translating this series into Brazillian Portuguese. Do you happen to know if anyone has done it yet? Would you mind me doing it (ofc with links to the original series)

CollapseExpand
 
tryjude profile image
Jude
Server developer using Python, Java, Postgres, Oracle... and aspiring Kotlin/Android wannabe
  • Joined

I'm not a JS developer but every now and then I have to dig into it. Over the past few years I've read lots of random things about the event loop but this is the first time I've had a clear picture of what's going on in the web browser (via the web api). Thanks!

CollapseExpand
 
miwsyed profile image
Syed Mustafa Naqvi
  • Joined

Hi, Lydia Hallie can you tell me what is the case with setInterval in call stack a combination of setTimeout and setInterval see the usecase below. Is setInterval also supposed to go to webAPI?

let c = 0;let id = setInterval(()=> {console.log(c++)},200)setTimeout(()=> {clearInterval(id)},2000)// prints/* 012345678 9and then stops  */
Enter fullscreen modeExit fullscreen mode
CollapseExpand
 
1option profile image
Maksim Rozhkov
  • Joined
• Edited on• Edited

2000/200 = 10 times

after 2 seconds we clear setInterval id

CollapseExpand
 
rodrigues profile image
Leandro Rodrigues
  • Joined

Great article Lydia.
Thanks so much for bring that clear explanation.

CollapseExpand
 
jonasroessum profile image
Jonas Røssum
Self-taught web application developer

Really nice article!
One thing I was confused about was

invoke bar. bar returns a setTimeout function.
Enter fullscreen modeExit fullscreen mode

Doesn't setTimeout return an id that you can pass to clearTimeout? 🤔

CollapseExpand
 
sirjoe profile image
Ibrahim Joseph
Lover of the Latest tech
  • Location
    New York
  • Education
    B.Tech Computer Science, Masters Data Analytics & Strategic Business Intelligence
  • Pronouns
    Man
  • Work
    Software engineer at TheLashDepott building on Shopify
  • Joined

Yes, It does Jonas, so lets say

letid=setTimeout(()=>{return"hey"},1000);console.log(id)// you will get 1letid2=setTimeout(()=>{return"hey"},1000);console.log(id2)// you will get 2
Enter fullscreen modeExit fullscreen mode
CollapseExpand
 
thamerbelfkihthamer profile image
thamer belfkih
  • Joined

thank guys to point out this detail, in the same context what's the purpose of this Id and it is used by the web API or the call stack for some purpose? thanks in advance

CollapseExpand
 
karim_muhammad profile image
Karim Muhammad
My Name is Karim Muhammad, I am computer science student, I am learner Front-End Dev currently, I Love so Much creating apps and Humanity Science.
  • Education
    Assiut University
  • Work
    null
  • Joined
• Edited on• Edited

I have question here...

function hello() { // syncconsole.log("hello");}function afterWhile() { async  setTimeout(()=> {    console.log("After Timer")  }, 0)}afterWhile();hello();  // gets added in callstack then pop it out sequentally;// so callstack is empty here, i guess?!!!! so why callback hasn't been executed here, in this timehello();
Enter fullscreen modeExit fullscreen mode

callstack here carry on one task then remove it, so why callback hasn't executed after popping out instanctly?

CollapseExpand
 
jeannotmn profile image
Jeannot MN
  • Location
    South Africa
  • Joined

Functions are pushed into the the call stack when the callstack is empty AND there are no other line of code to be executed in the main thread... in your case it was not pushed because there was still one more thing to execute in the main thread of execution (the second hello()); Only after completing the second call to the hello function that your callback will be pushed into the callstack...

I hope this helps.

CollapseExpand
 
ccwukong profile image
Nick Chen
  • Joined

Hi Lydia, I love the series. Just wondering what tool did you use to make those animations? I'm also writing some tech stuff but I can't find a perfect virtualization tool to illustrate my ideas, but your animations really match what I was looking for.

CollapseExpand
 
stanleysathler profile image
Stanley Sathler
  • Location
    Minas Gerais, Brazil
  • Work
    Full-Stack Engineer at VEED.IO
  • Joined

Thank you so much for the illustrations, Lydia! Very helpful, indeed!

One question: what happens when the main thread is blocked - i.e. the UI freezes? Would the whole interaction within that viewport be blocked - e.g. cursor wouldn't change after hovering a link?

I think I've never faced this situation before, so I'm curious how to identify such situation. Is there any way to simulate a huge processing in order to freeze my UI, just to see that?

Thanks in advance!

CollapseExpand
 
brunouyuy profile image
bru
  • Location
    Uruguay
  • Joined

Hi, you can try this:

        function wait5seconds() {            const plus5seconds = new Date().getTime() + 5000;            while ( plus5seconds > new Date().getTime() ) {}            console.log( 'wait5seconds end' );        }        function clickHandler() {            console.log( 'click event' );        }        document.addEventListener( 'click',            clickHandler ); // al comunicarme con la API del DOM estoy saliendo de JS         wait5seconds();        console.log( 'end script execution' );
Enter fullscreen modeExit fullscreen mode

Execute this script, and press a lot of clicks, the clicks events will appear at the end ( because the dom events are push into the queue.

I think that what you need to take into consideration is when you are performing a task that it might take some time, that might block the UI.

CollapseExpand
 
gaurangdhorda profile image
GaurangDhorda
  • Joined

In this particular case de-bouncing is useful when we click on button..

CollapseExpand
 
cryptic022 profile image
Pankaj Kumar
I am Senior Software Engineer at Autodesk India . Javascript/React/Redux. Exploring Cloud Technologies.
  • Location
    Pune India
  • Work
    Senior Software Engineer at Autodesk
  • Joined

Just write a for loop which is printing millions numbers. Call this function on any click function. You will see the effect.

CollapseExpand
 
omarpervez profile image
Omar Pervez
I'm Web Designer, and I am very passionate and dedicated to my work. With 4 years experience as a professional Web Developer,
  • Location
    Noakhali, Bangladesh.
  • Education
    Noakhali Science and Technology University
  • Work
    Front-end Web Developer at PPH
  • Joined

It's great article I saw. I have no more confused about it. I was trying to learn it but I can't. but Thank God, That I got your article on my browser home page. I want to also thank you daily.dev. they saw your article on my home page and I have come to your article and learned about event loop. Again Thank you so much Lydia Hallie from Omar.

CollapseExpand
 
aaktansel profile image
aaktansel
  • Location
    İstanbul,TR
  • Joined

Hi Lydia ,

Thanks for this useful article explaning a difficult to understand concept in a very simple way. And i want to translate it to Turkish to share in my personal blog, with linking the original author, do you have permission for this?

CollapseExpand
 
adnanbabakan profile image
Adnan Babakan (he/him)
I'm Adnan Babakan and I'm from Iran. I started programming since I was 8 and now I'm 24. I love programming!

Hi Lydia
This an amazing visualization and demonstration of JavaScript event loop.

I want to ask you permission to translate this article to Persian (Iran's language) with the original post link of course so this article would be more accessible for other readers.

CollapseExpand
 
lydiahallie profile image
Lydia Hallie
Software eng who likes to visualize technical concepts in my free time 🕺🏼 (I use Keynote..)
  • Joined

Sure 😃

CollapseExpand
 
ishanbagchi profile image
Ishan Bagchi
Full Stack Web Developer sharing insights, tips, and tricks about web development. Let's learn, create, and transform the web! 🚀💡
  • Email
  • Location
    India
  • Education
    Siliguri Institute Of Technology
  • Work
    SDE II - Full Stack @ QuestionPro
  • Joined

Hi Lydia, I watched your video and found it really informative. I’ve come across a few Event Loop visualizers before, but none of them really clicked for me, so I ended up building my own:event-loop-visualiser.ishanbagchi.com. Hope the community finds it useful! 😊

CollapseExpand
 
rishavkumar11111 profile image
Rishav Kumar
  • Education
    Parala Maharaja Engineering College
  • Work
    Software Developer at AKAL Informations Systems Ltd.
  • Joined

Hi, Lydia Hallie, this is a really informative article.
Please make a similar article on event loop in Node.js if possible.
It will be of immense importance to me as I am unable to get a proper explanation with an example.

CollapseExpand
 
kallekall profile image
Johannes
  • Joined

Hi Lydia,

I'm refreshing my knowledge on the event loop and even though your article is mostly correct, it does not start strong with the incorrect statement:

Therespond function returns asetTimeout function.

This is incorrect. Therespond will return an integer. You can easily check this yourself by doing:

constreturned=respond();console.log(returned===parseInt(returned))// true
Enter fullscreen modeExit fullscreen mode
CollapseExpand
 
banzy profile image
Vicent
  • Joined

Bravo! It's a great article, exactly what I was looking for showing to my team.
Just an extra consideration, it would be very cool to show a final example when we have actually more than one async item at queue. Taking into consideration different times of response for those functions.

CollapseExpand
 
cncuckoo profile image
Songfeng Li(李松峰)
  • Joined
• Edited on• Edited

Good demonstration! But a little issue exists in my opinion.

The 1st animation, when the respond() function was pushed to the call stack and executed, the setTimeout() function should be pushed into the call stack (and executed) as soon as possible, instead of waited for about 1 second. Because, as the first and only one line code inside the respond() function, the call to setTimeout( ) should be executed immediately at that time. The second argument of setTimeout(), 1000ms, has only to do with how long the timer should be waiting to add the callback to the task queue, it does not have any effect for when the setTimeout() should be pushed into the call stack.

I wish I had made this little issue clear. btw, the last animation has the same issue too. Thank you.

CollapseExpand
 
maedehjavadi profile image
maedehjavadi
I'm always a biginner...
  • Education
    softwareEngineer at Shariati Technical and Vocational College
  • Work
    FrontEnd developer at Barg
  • Joined

This is the greatest article about Event Loop I've ever seen. You provided a complete explanation in a short time—perfect!
I hope you keep providing these videos, they are useful for every web developer.

CollapseExpand
 
ramiroogh profile image
Ramiro
I am a Fullstack developer passionate about the development world. I live in Patagonia, Argentina. I'm Freelance
  • Location
    Patagonia, Argentina
  • Education
    Universidad Tecnológica Nacional - UTN (Fullstack Developer)
  • Work
    Freelance Web Design
  • Joined

excelente articulo, pensar que hace unos meses no entendia nada pero guarde el articulo ya que sabia que esto era clave, y ahora de tanto repasar js vanilla, pude entender jeje saludos desde la Patagonia, argentina.

CollapseExpand
 
escornwell profile image
Eric Cornwell
From Fortran IV to JavaScript via many projects over many decades, and looking forward to what's next.
  • Location
    Los Angeles
  • Work
    Senior Application Developer at Acuity Brands
  • Joined

Great explanations and descriptions. Interesting to note that in the final example the timer value is unimportant. Someone who is unaware of how the queue works might be surprised to find that a timer value of 0 still logs "Second" last. Which is actually an easy way to yield to the UI during a long-running process if it can be continued via a timer callback, which will happen virtually immediately if the queue is empty.

CollapseExpand
 
olesbolotniuk profile image
oles-bolotniuk
Software Engineer
  • Location
    Kyiv, Ukraine
  • Work
    Software Engineer
  • Joined

The best explanation I've ever seen, thank you for sharing!
What's the role of the HEAP that's mentioned on the first picture?

CollapseExpand
 
max_tulian profile image
Max (he/his)
Love learning and teaching.

Good post, I really appreciate the effort you do to explain the things :)

CollapseExpand
 
ruizhen88 profile image
Yejin
  • Joined

Thanks for the great article, Lydia! Do you mind if I translate this JS Visualizeed series into Korean with the original article and author credit? I think a lot of Korean developers would be interested in learning them.

CollapseExpand
 
chanmilee profile image
Chanmi Lee
  • Joined

Tons of thanks for this great article and awesome animations! :)
I wonder if it would be possible to translate this article to Korean with the original post link for making this useful content be more accessible for other readers.

CollapseExpand
 
larsolt profile image
Lars
  • Work
    Fullstack Developer
  • Joined

Awesome, thanks

CollapseExpand
 
devworkssimone profile image
DevWorksSimone
30Years old guy passionate over the idea to do magic stuff with the pc
  • Location
    Zurich
  • Joined

I love gifs! Thanks for explanatio ! Not programming in javascript but was very interesting ti read!

CollapseExpand
 
dayvster profile image
Dayvster 🌊
Dayvi Schuster Freelance web developer | software consultant | mobile developerI make dope shit with code and stuff.
  • Location
    Slovenia ⛰
  • Work
    Software developer
  • Joined

You did a fantastic job of explaining and animating this.

CollapseExpand
 
thecodingalpaca profile image
Carlos Trapet
Full-Stack Javascript Dev || ex- Santander Technology || now living the start-up life in central London
  • Location
    London
  • Education
    Master's Degree
  • Work
    NodeJS Developer at Atom Learning
  • Joined

Good stuff, Lydia! You have a very nice and straight-to-the-point way of expressing concepts, I'd love to read some more posts of yours, if you do have any!

CollapseExpand
 
lydiahallie profile image
Lydia Hallie
Software eng who likes to visualize technical concepts in my free time 🕺🏼 (I use Keynote..)
  • Joined

Will post them soon 😎

CollapseExpand
 
10secondsofcode profile image
Elango Sundar
Fullstack developer in ReactJs, Symfony4, NodeJs, Javascript, html5, css3, php and AWS.
  • Location
    India
  • Work
    Full stack developer - ReactJs, Javascript, Php, Html5, Css3
  • Joined

Nice awesome articles and visullay explained the event loops :)

CollapseExpand
 
indysigner profile image
Markus Seyfferth
  • Joined

Hi Lydia,

such as great and helpful article! Would it be OK with you to translate it into German and to republish it ondrweb.de/ (with your author bio, of course)?

Thank you, — Markus

CollapseExpand
 
lydiahallie profile image
Lydia Hallie
Software eng who likes to visualize technical concepts in my free time 🕺🏼 (I use Keynote..)
  • Joined

Absolutely!

CollapseExpand
 
indysigner profile image
Markus Seyfferth
  • Joined

Thanks so much!

CollapseExpand
 
abinash393 profile image
Abinash Panda
  • Location
    Odisha, India
  • Education
    Utkal University
  • Work
    Web Developer
  • Joined

what about microtasks?

CollapseExpand
 
bigleegeek1 profile image
bigleegeek1
beginning frontend and backend developer. appreciate articles, tips etc to help me better understand the ends and outs
  • Location
    seattle, wa
  • Work
    tech support at contractor
  • Joined

As a newbie to learning JS I appreciate your post and look forward to others.

bigleegeek

CollapseExpand
 
deyvisonrocha profile image
Deyvison Rocha
Full Stack Developer PHP / NodeJS / VueJS / AngularJS
  • Location
    Recife, PE, Brazil
  • Education
    Análise e Desenvolvimento de Sistemas, Estácio
  • Work
    Tech Lead at Amigo App
  • Joined

Nice article! Thanks for share!

CollapseExpand
 
ryzhov profile image
Aleksandr N. Ryzhov
  • Location
    Ukraine
  • Education
    Bachelor's Degree in Computer Engineering
  • Joined

Thanks!

CollapseExpand
 
evelynpei profile image
Evelyn Pei
Web developer 💻 // Cat lover 😺
  • Location
    Los Angeles, CA
  • Joined

Very helpful in further understanding the event loop! Thanks for posting, Lydia! :)

CollapseExpand
 
henshawsamuel profile image
Samuel Henshaw
I am a passionate developer
  • Location
    Nigeria
  • Work
    Mr at Ihifix Technology
  • Joined

I was, currently and still impressed and wowwwwwed by this article. its as if this is the first time i am seeing a Promise.

Great article

CollapseExpand
 
avneeshroks profile image
avneeshroks
  • Joined

Hey Lydia! This was amazingly explained! One thing I'm still now able to understand is what's microtasks and macrotasks! How engine prioritize those? Also how the Render/Paint queue work with the Normal queue?

CollapseExpand
 
gsvidal profile image
Gonzalo
  • Location
    Lima
  • Joined

Amazing!, it was so helpful, thanks

CollapseExpand
 
ashimb profile image
A5h1m
Hey, I m Ashim, freelancercurrently working on the web application. Looking forward to working more on different web technologies. Will put my first post soon...
  • Location
    India
  • Education
    MTech computers
  • Work
    Developer at India
  • Joined

Fantastic visualization. Thanks Lydia

CollapseExpand
 
kanxiaoxi profile image
侃小溪
  • Joined

Hi, Lydia Hallie, Thank you for your great work. I want to translate your articles in Chinese to improve my English and skills😊.

CollapseExpand
 
mohamedlazybob profile image
MOHAMED ZABOUB
Just a nubby
  • Location
    Morocco
  • Work
    Student
  • Joined

I just wanna thank you for this amazing explanation, the first time I've read this 3 months ago, everything was new to me and blur.

Today I went on it again and it's just crystal clear too!

Thank you 3

CollapseExpand
 
hannadrehman profile image
hannad rehman
  • Location
    Bangalore
  • Work
    Software engineer at healthifyme
  • Joined

What if there are no functions is the program?.lets say i have 10 instructions like variable deceleration, assignment , arthematic operations etc. Will all these instructions also go to call stack?
Var a = 10:
Var b;
b = a+ 10;

CollapseExpand
 
jeannotmn profile image
Jeannot MN
  • Location
    South Africa
  • Joined

These will be executed in the global execution context... which is at the bottom of your call stack

CollapseExpand
 
jeannotmn profile image
Jeannot MN
  • Location
    South Africa
  • Joined

Thanks for the detailed post😃.

I have a question regarding this "Luckily, the browser gives us some features that the JavaScript engine itself doesn’t provide: a Web API. This includes the DOM API, setTimeout, HTTP requests, and so on. This can help us create some async, non-blocking behavior 🚀"

Does the Web API allow us to create asynchronous behavior? Doesn't it just give us features that the JS Engine does not have?
Am I wrong saying it's rather the event loop and the callback queue that allow us to create asynchronous behavior?

CollapseExpand
 
thanhtrung profile image
thanhtrung
  • Joined
  1. The timer runs, in the meantime foo gets invoked and logs First. foo returns (undefined),baz gets invoked, and the callback gets added to the queue.

Image description
I don't understand why it can log undefined in here, can you pls explain more ?

CollapseExpand
 
1option profile image
Maksim Rozhkov
  • Joined

this functions return nothing

CollapseExpand
 
starl441 profile image
STARK
  • Joined

I just can't believe how ellaborate and simple this blog is !!!.This seriously made my day and saved me a lot of time.kudos to the writer!! I specifically created an account to make this comment to support this author.Expecting a lot of concepts to be simplified with gif's.

CollapseExpand
 
imtiaz_ali_a117e25cc2999e profile image
Imtiaz Ali
  • Joined

I am learning through your github repository Javascript Questions.
The all I have to say you made my life It's helping me alot to understading the javascript.
In one of those questions you shared the link of this article it's just an amazing stuff you shared on github thank you so much.

CollapseExpand
 
douglasfugazi profile image
Douglas Fugazi
Free thinker
  • Location
    Medellín
  • Education
    MSc Technology Management
  • Work
    QA Engineer
  • Joined

Super nice explanation. I've learnt new things with this article. Thanks!

CollapseExpand
 
ijebusoma profile image
Vanessa Osuka
  • Joined

So it's safe to say the purpose of the event loop is to prevent any callback clashes? 🤔

CollapseExpand
 
lydiahallie profile image
Lydia Hallie
Software eng who likes to visualize technical concepts in my free time 🕺🏼 (I use Keynote..)
  • Joined

Hm no, not really. Imagine we have 4 tasks, and the 2nd tasks needs a delay. If this delay would've happened on the main thread,nothing would've been able to run on the thread while we were waiting:

However, the web api gives us some sort of asynchronous behavior by letting us put stuff "to the side" so to say. We can now keep on running other tasks, thus keeping an interactive UI, while tasks are running in the background:

Hope this somehow made sense haha I just woke up so my illustrations may not be optimal 😜

CollapseExpand
 
stanleysathler profile image
Stanley Sathler
  • Location
    Minas Gerais, Brazil
  • Work
    Full-Stack Engineer at VEED.IO
  • Joined

So can we say that preventing callback clashes is the queue's job, instead of event loop's one?

CollapseExpand
 
devworkssimone profile image
DevWorksSimone
30Years old guy passionate over the idea to do magic stuff with the pc
  • Location
    Zurich
  • Joined
• Edited on• Edited

Great!

CollapseExpand
 
gabrielduerto profile image
Gabrielduerto
empece hace 5 meses en este tema de la programacion, actualmente estoy haciendo un bootcamp y llegue aca porque sigo a Devcaares en tiktok
  • Joined

Muchas Gracias Lydia, aunque no pude entender tu video, el texto esta bien explicado y pude traducirlo, se que tengo que aprender Ingles, tan pronto termine el bootcamp hare un curso intensivo de Ingles, igualmente muchas Gracias por tu Articulo <3

CollapseExpand
 
diepvv profile image
diepvv
Hi i am diep
  • Location
    Ho Chi Minh
  • Work
    Software Engineer at FPT Software / FPT Telecome
  • Joined

Hi, Lydia, it is a great article.

CollapseExpand
 
nvminhtu profile image
Tu Nguyen
  • Joined

It is a very visual and great, easy to understand, you saved my life.
Hungry to read these kind of posts.

Love your post!!!!

CollapseExpand
 
rodolphoasb profile image
Rodolpho Bravo
Born to learn.
  • Location
    Brazil
  • Joined

Hey, Lydia! How have you been? Awesome article!!

Can I translate this article series into Portuguese? (With original author and link, of course).

CollapseExpand
 
laerciolopesll profile image
LaercioLopesLL
  • Work
    Programmer
  • Joined

Images off

CollapseExpand
 
upasanagithub profile image
Upasana Mahanta
  • Location
    Hyderabad, India
  • Work
    Senior Software Engineer at ServiceNow
  • Joined

Great article and animations!

CollapseExpand
 
trangchongcheng profile image
cucheng
Dev Viet Nam
  • Location
    Viet Nam
  • Education
    Da Nang CIT
  • Work
    Đang làm việc tại công ty trách nhiệm hữu hạn một thành viên Techbike Việt Nam
  • Joined

Nice, thank for you...love you <3

CollapseExpand
 
gislenejs profile image
Gislene Carvalho
I'm front-end developer and React Lover with 3+ experience in development.
  • Location
    Brazil
  • Work
    Gislene Carvalho at eNe Soluções
  • Joined

It's a gift of the Gods for a visual learner like me. Thanks for this ultra helpful article.

CollapseExpand
 
htetsoemoe profile image
Soe Moe Htet
  • Joined

Thanks for a great article series. 👍

CollapseExpand
 
nhuthuynh profile image
NhutHuynh
  • Location
    Sydney
  • Work
    Programmer
  • Joined

Great article, amazing animations makes me understand the topic easily.

CollapseExpand
 
princebuchi12 profile image
Prince Buchi
Love programming
  • Joined

Wow

CollapseExpand
 
kazinoman profile image
kazinoman
Design lover
• Edited on• Edited

Tnx for your effort.

CollapseExpand
 
itsjatin_kumar profile image
Jatin Kumar
I am working as a software engineer in cloud team at Samsung Electronics for over 1.7 years. I have experience in AWS cloud, Linux, ASP.NET core, MongoDB and GitHub Actions CI-CD pipeline
  • Location
    India
  • Education
    B.Tech, NIT Delhi
  • Work
    Software Developer @Samsung Electronics
  • Joined
• Edited on• Edited

Very informative. Hats off to the explanation!!!

CollapseExpand
 
diebythelaw profile image
Vandstein
  • Location
    Localhost
  • Joined

Thank you for sharing, it's really interesting!

CollapseExpand
 
hieunghiait profile image
Hieu Nghia

nice****

CollapseExpand
 
sudharsanansr profile image
Sudharsanan Ravichandran
#Python #JS #Algorithms #DataStructures
  • Location
    Hyderabad, India
  • Work
    Learning at edX
  • Joined

This is a great article, thanks for sharing!

CollapseExpand
 
dostonhack profile image
Doston
  • Joined
• Edited on• Edited

Hello , Lydia Hallie, it is a great article.

Can I translate this article into Uzbek to help more Uzbek developers(With original author and link, of course). too

CollapseExpand
 
dangnguyen1004 profile image
DangNguyen
  • Joined

Amazing, really like you visualization

CollapseExpand
 
chideracode profile image
Chidera Humphrey
I'm a front-end developer with experience in React, APIs, and the web in general. I talk about all things frontend, JavaScript, React, and how to work with APIs.

Super helpful and well written.

Thanks for taking your time to share this with us.

CollapseExpand
 
pratap2210 profile image
Pratap Sharma
I am a Software Engineer with 6+ years of experience in building and deploying web applications using varying tech stacks. My expertise lies in the frontend, backend and mobile apps.
  • Email
  • Location
    Pokhara, Nepal
  • Education
    Mizoram University
  • Work
    Lead Engineer at Rippey AI
  • Joined

Hi@lydiahallie It was an amazing article and animations.

How did you create those animations?

CollapseExpand
 
rschneider94 profile image
Rodrigo Schneider
  • Location
    Hamburg, Germany
  • Work
    Frontend Developer at HAPPYCAR GmbH
  • Joined

Thanks for this article and also the others. Awesome explanation and awesome GIFs! Cool idea. I hope you have a nice day! :)

CollapseExpand
 
_martinjose28_ profile image
martin jose
Developer junior focused on web technologies, studying Javascript.
  • Location
    Cabimas, Venezuela.
  • Education
    Gas Engineers.
  • Work
    Junior Developer. at Simsa de Venezuela C.A
  • Joined

And finally i started to understand how the event loop works, thanks a loooot. I've been reading for days feeling confusing. Great job with those gif, love it.

CollapseExpand
 
perpetual_education profile image
perpetual . education
An education consultancy focused on researching, designing, building, and testing cutting-edge curriculum, running bold experiments to innovate learning.
  • Email
  • Location
    Los Angeles
  • Education
    perpetual.education
  • Work
    Designer at perpetual.education
  • Joined

Great job! Here's a deep dive from another presenter:latentflip.com/loupe - and with a live app to show the visualizations.

CollapseExpand
 
azeem2793 profile image
Agha Azeem
Technical Lead | Full Stack Developer | Agile Coach | Scrum Master | Architecture | Cloud | AI/ML Enthusiast
  • Email
  • Location
    Dubai
  • Education
    Masters in Software Engineering
  • Joined

Fantastic 👍

CollapseExpand
 
night_towel profile image
Diana Lozano
  • Joined

Looks like "What the heck is the event loop anyway?" by Philip Roberts | JSConf EU
https://www.youtube.com/watch?v=8aGhZQkoFbQ&vl=en

CollapseExpand
 
asuna24 profile image
asuna24
A Full Stuck Engineer
  • Location
    Indonesia
  • Joined

Hi@lydiahallie , thank you for your super comprehensive explanation. All of the gifs are incredible, helped me a lot to understand more about javascript under the hood.

CollapseExpand
 
dohnjoe123 profile image
Dohn Joe
Frontend Developer. Love Javascript, Rust, UI•UX, OOPfrom South Korea

Thanks!!!! This article is amazing 👏👏👏

CollapseExpand
 
atilacamurca profile image
Átila Camurça Alves
dev
  • Location
    Brazil
  • Joined

Great article!

Have you heard of loupe?latentflip.com/loupe/

CollapseExpand
 
sarah_chima profile image
Sarah Chima
Software engineer, Tech educator
  • Location
    Sweden
  • Joined

Super clear explanation. Thanks for sharing this.

CollapseExpand
 
mustafaensar profile image
Mustafa Ensar
  • Location
    Switzerland
  • Joined

Hi Lydia Hallie,

I'm gonna make a presentasion and tell this subject to other students like me in my class. Can I use your gif images :)

CollapseExpand
 
svsharma profile image
Shriram Sharma
Generalist with an ever-expanding toolset. Latest tech skills: D3.js, Node.js, React, & Adobe XD.
  • Location
    Vancouver, BC
  • Education
    British Columbia Institute of Technology
  • Work
    Web Content Developer
  • Joined

Lydia, thank you for breaking this down for us! As a visual learner, this is gold!

CollapseExpand
 
juliosaraiva profile image
Julio Saraiva
  • Joined

Awesome. Great Job!

CollapseExpand
 
gizelads profile image
Gizela Delgado Soto
  • Location
    LATAM
  • Education
    Universidad Católica Boliviana
  • Joined

This is really usuful, the graphics help a lot 🤗

CollapseExpand
 
yamanchinu profile image
Yaman Agrawal
I am a frontend developer aspiring to be a full stack guy. Crazy about HTML, CSS and JAVASCRIPT.
  • Location
    New Delhi
  • Work
    Senior UI Developer at Publicis.Sapient
  • Joined

Lydia, big thanks, I have been coding for a while now, always wished I had some visual guidance at the start of my career and here you are. BIG THANKS AND HUGE RESPECT.

CollapseExpand
 
didof profile image
Francesco Di Donato
Grant me the serenity to accept the scripts I cannot change, courage to change the scripts I can, and wisdom to know the best way to refactor them.
  • Email
  • Location
    Bari
  • Education
    Bachelor Degree in Biotechnology
  • Work
    Software Development Engineer II
  • Joined

Hello Lydia,
I really appreciate you piece of work. Congratulations.

CollapseExpand
 
jameslam profile image
jameslam
  • Joined

Great article, thanks! Could you please explain macro task and micro task in this visual way? It can definitely help others!

CollapseExpand
 
paras594 profile image
Paras 🧙‍♂️
Senior Frontend Engineer & Certified Neo4j Professional with 7 years of experience. Love to learn and build new things. When not coding, you can find me exploring new tech, games & books.

good good good...these visualizations are fabulous !!

CollapseExpand
 
kuscamara profile image
Kus Cámara
  • Joined

Great post! Worths mentioning the job or microtask queue (promises) that has higher priority than the callback queue.

CollapseExpand
 
idaeun profile image
Daeun Kang
  • Joined

Hi, thank you for great article.
Can I translate this series into Korean in my blog? (of course with original author & link)

CollapseExpand
 
crazy4groovy profile image
crazy4groovy
  • Joined

Thanks!

Now it time to add the promise's micro queue! :)

CollapseExpand
 
ibtesum profile image
Ibtesum Reza Aninda
I am a self-taught frontend developer.

Image no longer exists!!!!!

CollapseExpand
 
rhaegar453 profile image
rhaegar453
Code doesnt lie!
  • Location
    India
  • Work
    ReactJS Developer
  • Joined

This is one of the best articles I've seen on Event Loop. Thanks, Lydia for sharing :)

CollapseExpand
 
novajay2415 profile image
NovaJay2415
I'm currently a front-end web dev looking to become a progressive web app developer, which means I'm now learning JavaScript, PHP, and mySQL.
  • Joined

Super helpful! I love this!

CollapseExpand
 
robsonmuniz16 profile image
Robson Muniz
Hello Dev! 👋 I'm Robson Muniz. I love teaching / coding and learning on YouTube and Facebook.
  • Joined

Wow, Great Contet, thanks for sharing it!

CollapseExpand
 
natespring profile image
Nate Spring
I love automation, AI, mechanics and web development.
  • Location
    Idaho
  • Work
    Web Developer at Inventive Products
  • Joined

The visualization helps so much! Thank you very much for putting the time into this.

CollapseExpand
 
vikaschauhan1 profile image
Vikas Chauhan
  • Joined

This is the best article on event loop I have encounter so far.
Thank you so much for making it so wasy for us :-)

CollapseExpand
 
ajassharafudeen profile image
Ajas
Full-stack web developer with a love for all things tech. Constantly exploring new technologies and methodologies to enhance my skills and create innovative solutions.
  • Location
    Trivandrum, Kerala, INDIA
  • Joined

The Best.

CollapseExpand
 
wlsdud2194 profile image
JinYoung-Lee
  • Joined

Super nice article. Thank you for writing the post😊

I want to translate this post series into Korean. May I do this leaving the link and original author?

CollapseExpand
 
markandersonnc profile image
MarkAndersonNC
I'm a co-funder of Smart Contact Manager, an app which allows to share Google contacts with order users
  • Location
    Charlotte, NC
  • Work
    Founder at Smart Contact Manager
  • Joined

Great article. JS is so hard to learn

CollapseExpand
 
mohmmadmoussa1988 profile image
mohmmadmoussa1988
  • Joined

Great Visuals, Thank you

CollapseExpand
 
cagatayunal profile image
Cagatay Unal
Code Padawan 🚀

Thanks for the great article.

CollapseExpand
 
gajjardarshithasmukhbhai profile image
Darshit Gajjar
I am a passionate Full-stack developer + Cloud Advocate at Verizon
  • Email
  • Location
    Hyderabad
  • Education
    BTECH in Computer Science
  • Pronouns
    Darshit
  • Work
    Full Stack Web Developer + Cloud Advocate at Verizon
  • Joined

Great Article Lydia, make this kind of Articles ❤️

CollapseExpand
 
prafulla-codes profile image
Prafulla Raichurkar
Be kind to yourself and the world around you <3
  • Location
    India, Mumbai.
  • Education
    B.E Engineering Student in Information Technology
  • Work
    Software Developer
  • Joined

Wow, nicely explained :D

CollapseExpand
 
zhangbo profile image
zhangbowy

Can I translate your article to a Chinese technical website? , will comment the original link

CollapseExpand
 
luckydevboy profile image
Mohammad Reza Ghasemi
Frontend Developer with 5+ years of experience building and maintaining web applications using React.
  • Email
  • Location
    Tehran, Iran
  • Education
    Bachelor's and Master's in Industrial Engineering
  • Work
    Working at SnappPay
  • Joined

Hey Lydia, just wanted to say a huge thank you for this series. I really appreciate it and now I feel like I've got a good grasp on these JavaScript concepts.

CollapseExpand
 
capscode profile image
capscode
CapsCode is an edtech and web development company empowering students with coding skills and businesses with tailored IT solutions to grow in the digital world.
  • Email
  • Location
    India
  • Education
    Haldia Institute of Technology
  • Pronouns
    They
  • Work
    We teach coding, build custom websites/software, and provide IT solutions for students & businesses.
  • Joined

Wow...
Amazing article for and amazing topic of JS by an amazing writer with an amazing explanation.

thanks for sharing this.

CollapseExpand
 
thisisanish profile image
Anish Agarwal
Wassup
  • Joined

Glad to find such a gem !

CollapseExpand
 
deepak_vishwakarma_b61261 profile image
Deepak Vishwakarma
  • Joined

i read it 1month earlier thank you for quick revision it,s great your written article feel like somebody teaching in front of me easy english

CollapseExpand
 
ajay08code profile image
ajay08-code
Front-end developer. Proficient in React js, GraphQL, JavaScript. Familiar with Ant Design.
  • Location
    Kolkata
  • Education
    Btech
  • Work
    Web developer at Infosys Ltd
  • Joined

Gifs are so explicit. You really explained everything perfectly

CollapseExpand
 
iakgoog profile image
Sutthinart Khunvadhana
An ordinary nomadic coder
  • Location
    Bangkok
  • Work
    Software Engineer at Refinitiv
  • Joined

Fantastic article. Love the way you explain things step-by-step.

CollapseExpand
 
dhananjana profile image
Sachintha Dhananjana
  • Education
    University of Moratuwa
  • Work
    Software Engineer at Stack Technologies
  • Joined

This is a Great job.It makes really easy to understand the concept.

CollapseExpand
 
tamb profile image
Tamb
I am not the brightest tool in the shed
  • Location
    Pittsburgh, PA
  • Education
    BA
  • Pronouns
    He/Him
  • Work
    Full Stack Engineer
  • Joined

You explained this beautifully! Thank you!

CollapseExpand
 
threetowns profile image
leon
Get the Best Solution For Your Business!
  • Joined

Hi, Hallie, I think you can add 'async/await' execute in the gif.

CollapseExpand
 
ehzawad profile image
ehza
  • Joined

This is fantastic!

CollapseExpand
 
hcminhit profile image
i love Math
  • Joined

Hi, Lydia Hallie
you mentioned "web API" so what do you mean "web API"? I don't understand what "web API" is, which you are referring to?

CollapseExpand
 
hcminhit profile image
i love Math
  • Joined

hi Lydia
you mentioned "web API" so what do you mean "web API"? I don't understand what is "web API" , which you are referring to?

CollapseExpand
 
eslamsaeed12 profile image
islam saeed
  • Joined

👍 the best one explained event loop ➿

CollapseExpand
 
sonimonish00 profile image
Monish Soni
Hi There !!
  • Location
    India
  • Joined

Thank You so Much !!

CollapseExpand
 
odntht profile image
Fernando Rodrigues
Still learning about it.
  • Location
    Remote
  • Work
    FullStack Developer at Some place
  • Joined

I love it! I’m a visual learner too so this helps a lot! Keep going! o/

CollapseExpand
 
frances34983772 profile image
Francesca T
  • Joined

Thanks a lot Lydia!

CollapseExpand
 
esteban___vera profile image
Esteban Vera
  • Joined

Hi, Lydia!
You are the best!

CollapseExpand
 
karthikaruna profile image
Karthikeyan A.
Software Engineer passionate about frontend technologies
  • Location
    Chennai, India
  • Work
    Frontend Engineer
  • Joined

Hey Lydia, what about event listeners/callbacks? How do they work internally?

CollapseExpand
 
djangotricks profile image
Aidas Bendoraitis
Author of Web Development with Django Cookbook.
  • Location
    Berlin, Germany
  • Education
    Vilnius University, Lithuania
  • Work
    Founder at "1st things 1st"
  • Joined

These series are such a pearl. Thanks for creating them. I am very happy to have found them.

CollapseExpand
 
jeffchavez_dev profile image
Jeff Chavez
Software Consultant @Servio | Freelance FrontEnd Developer @jctechdev
  • Email
  • Location
    Philippines
  • Education
    Javascript Development with Clever Programmer
  • Work
    Software Consultant at Servio Australia
  • Joined

Wow. This is so helpful since JS is really challenging. Thanks for the effort.

CollapseExpand
 
sebasqui profile image
SebasQuiroga
I am a software engineer focus on developing robust systems in the cloud and sometimes even on earth.
  • Location
    Colombia
  • Work
    SW Specialist
  • Joined

Great article Lydia!

CollapseExpand
 
devidmaul9990 profile image
Devidmaul
  • Joined

Still learning Java. It's little bit difficult for me. I used it on my projectInfinite Craft

CollapseExpand
 
anilloutombam profile image
Anil Loutombam
Exploring the world of JavaScript. | MERN
  • Location
    India
  • Work
    Software Engineer
  • Joined

The GIF you put just, make my things so loud and clear, thank you so much.

CollapseExpand
 
esterkaufman profile image
Ester Kaufman
  • Work
    Senior Developer, SAP
  • Joined

Hi, Lydia, i think this is the best post to get the JS loop behind the scenes.

Can I translate this post, and publish it on my blog, with credits to the author and direct link?
Thanks for posting!

CollapseExpand
 
orashus profile image
Rash Edmund
Software developer
  • Education
    Rebase Academy
  • Pronouns
    he/him
  • Work
    Full stack web developer
  • Joined
CollapseExpand
 
hagayhaut profile image
Hagay Haut
  • Joined

Thanks for putting these together! I've been reading about some of this stuff and this really helps it click.

CollapseExpand
 
karthikaruna profile image
Karthikeyan A.
Software Engineer passionate about frontend technologies
  • Location
    Chennai, India
  • Work
    Frontend Engineer
  • Joined

Lydia, what about event callbacks like click, scroll. How do they work?

CollapseExpand
 
marinaandthecode profile image
Marina
  • Work
    Frontend Web Developer
  • Joined

Thanks a lot! It doesn't look scary anymore

CollapseExpand
 
kamilacode profile image
Kamila Santos Oliveira
Backend developer specialist - Microservices, Java and Spring
  • Location
    São Paulo, Brasil
  • Work
    Backend Developer specialist
  • Joined

awesome content!

CollapseExpand
 
sauliusp profile image
Saulius
  • Joined

Superb!

CollapseExpand
 
jongeunk0613 profile image
Jongeun Kim
  • Joined

Hi, Lydia.
Your article was of great help in understanding javascript.

Could I upload your article in Korean translation?
It would greatly help other Korean developers !!

CollapseExpand
 
prasathmani profile image
Prasath
  • Location
    Localhost, 80
  • Joined

The article is excellent and the video explanation is truly remarkable.!

CollapseExpand
 
ramy5 profile image
Ramy Sabry
Never stop learning because life never stop teaching.

Hi, Lydia Hallie, it is a great article.
Thanks so much, finally i understand it.

CollapseExpand
 
rmfranciacastillo profile image
Renato Francia Castillo
Currently working on cool MEAN projects! Love Javascript and all it's power. Current Focus: ES6, Angular, Ionic 4, React, MongoDB, Node, Express. Next Interest: Tensorflow.js, Artificial Intelligence
  • Email
  • Location
    Lima, Peru
  • Education
    BS. in Computer Science
  • Work
    Software Developer at Freelance
  • Joined

This is so COOL! What did you used in order to do the animations?

CollapseExpand
 
hossammuhammedomar profile image
Hossam Omar
Creative web developer 👾
  • Location
    Egypt, Cairo
  • Joined

great article, thank you very much

CollapseExpand
 
ximbal profile image
EN
  • Joined

Great Series! Love them, what did you use to create your animations?

CollapseExpand
 
abdallahsamir96 profile image
Abdallah Samir
  • Joined

please i need to know how it works with more than async operation
such as 2 of setInterval or 2 of setTimeout

Thank you

CollapseExpand
 
onsdiweni profile image
ᴏɴᴇꜱ ᴅɪᴏᴜᴀɴɪ
ɪ ᴀᴍ ᴀ ᴘᴀꜱꜱɪᴏɴᴀᴛᴇ ᴅᴇᴠᴇʟᴏᴘᴇʀ ᴀɴᴅ ᴀ ᴄᴏɴᴛɪɴᴜᴏᴜꜱ ʟᴇᴀʀɴᴇʀ , i ᴡʀɪᴛᴇ ᴀ ʟᴏᴛ ᴏɴ ᴀ ᴡɪᴅᴇ ʀᴀɴɢᴇ ᴏꜰ ᴛᴏᴘɪᴄꜱ ʀᴇɢᴀʀᴅɪɴɢ ꜰʀᴏɴᴛ-ᴇɴᴅ ᴀɴᴅ ʙᴀᴄᴋ-ᴇɴᴅ ᴅᴇᴠᴇʟᴏᴘᴍᴇɴᴛ ᴀɴᴅ ᴇᴠᴇʀʏᴛʜɪɴɢ ʟɪɴᴋᴇᴅ ᴛᴏ ᴛʜᴀᴛ.
  • Email
  • Location
    Paris
  • Education
    Ecole Supérieure Privée d'Ingénierie et de Technologies - ESPRIT
  • Work
    Software engineering student
  • Joined

Great article
Thanks Lydia

CollapseExpand
 
swtpumpkin profile image
JeongwonKim
  • Joined

Hi.
This is interesting article!!!
So, i want translate Korean.....
Is it possible?

CollapseExpand
 
prajwalscorpionking123 profile image
PRAJWAL PATIL
Golang developer with 2+ years of experience in backend heavy work.
  • Email
  • Location
    Pune, Maharashtra,India
  • Education
    COMPUTER SCIENCE AND ENGINEERING
  • Work
    Sr. Software Developer
  • Joined

Nicely explained.. thank you so much

CollapseExpand
 
oussabay profile image
Oussama
Hello, i am Oussama web development student
  • Joined

very insightful thank you

CollapseExpand
 
donjudeeng profile image
Don Jude Joseph
Technology Enthusiast
  • Location
    Cochin, City
  • Work
    Software Engineer
  • Joined

Thank you Lydia Hallie fo this article

CollapseExpand
 
tranduchoa profile image
Trần Đức Hòa
  • Joined

Great article! Thanks.

CollapseExpand
 
ghostmaysam1 profile image
Maysam
React🔵 and Vue🟢
  • Location
    Iran for ever
  • Education
    Still student
  • Joined

wow!

CollapseExpand
 
kirankamath96 profile image
Kiran Kamath
Here to share and learn, lets connect to make some beautiful projects and learn something new.
  • Location
    Mumbai
  • Work
    Software Engineer at n.a
  • Joined

Why does event loop makes sure the call stack is empty , if there is already a callback function inside queue waiting to be invoked?

CollapseExpand
 
edgarmc100 profile image
EdgarMC100
  • Joined

This article helped me to remember what I read in a book in just 5 minutes, thanks Lydia. I consider myself a visual learner.

CollapseExpand
 
bilalniaz15 profile image
Bilal Niaz
Software Engineer at socialbu
  • Email
  • Location
    Pakistan
  • Education
    Software Engineer
  • Joined

Hi, Lydia Hallie, it's good article

CollapseExpand
 
khaledalwakel profile image
khaled-alwakel
  • Joined

thank you so much . it was very helping ..

CollapseExpand
 
dinhkhiemtran profile image
Khiêm
  • Joined

Awesome!

CollapseExpand
 
elamiir profile image
El-amiir
Talented front-end developer with a sense of art.
  • Education
    Alexandria University
  • Work
    Front end developer
  • Joined

Great article, Thanks.

CollapseExpand
 
ksdeveloper profile image
kuldeep patel
I'm a Website designer in HTML, CSS, Javascript, WordPress, and Shopify.

I really love this article...
My mind is blown. 🤯
😅
This article is very used fully for me. Thank you Lydia Hallie. 🙂

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp