Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
Javascript debugging with parallely looking into the message queue

I have learnt about the 'eventloop' and 'message queue' recently and now having pretty much idea about how the event loop helps to execute the methods that are queued in 'message queue' once the stack got empty. But am having one doubt here, while debugging the methods which are available in stacks in chrome browser, Is there is anyway we can identify what are the methods that are present in 'message queue' upto current debug point and which are going to execute by event loop once the current stack is empty.? Correct me if my question is wrong or my understanding is wrong because am new to these topics.

For Example:

const sayHello = () => console.log("Hello");

const sayBye = () => console.log("Bye");

setTimeout(sayBye,1000);

sayHello();

In the above example from my understanding the sayHello() will execute first and at the meantime sayBye function is kept in the message queue until the current stack got emptied which is handled by event loop. So while execution of the sayHello(), If I put a break point inside sayHello()(in Chrome browser) at that time is there is any where in the browser tools or any window we can see and visualize that sayBye is kept in 'Message Queue'?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda