---
title: "Discussion on \"Inside JavaScript's Runtime: Callstack, Event Loop, Callback and Job Queues\" | Hashnode"
description: "Discussion on \"Inside JavaScript's Runtime: Callstack, Event Loop, Callback and Job Queues\". Overview\nIn this article, let's deep dive into how javascript works under the hood, how it executes our asynchronous javascript code, and in what order, how it generates stack trace, and much more...\nLet me break it down for you. When you write JavaS..."
url: "https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Inside JavaScript's Runtime: Callstack, Event Loop, Callback and Job Queues](https://pranita.hashnode.dev/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues?utm_source=hashnode&utm_medium=feed)

Overview In this article, let's deep dive into how javascript works under the hood, how it executes our asynchronous javascript code, and in what order, how it generates stack trace, and much more... Let me break it down for you. When you write JavaS...

Mar 7, 2023 · 9 min read · pranita.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-runtime](https://hashnode.com/tag/javascript-runtime)
-   [#callstack](https://hashnode.com/tag/callstack)
-   [#event-loop](https://hashnode.com/tag/event-loop)
-   [#callbackqueue](https://hashnode.com/tag/callbackqueue)

## Written by

[Pranita Fulsundar](https://hashnode.com/@pranita)

@pranita · Pune, India

  
[View profile](https://hashnode.com/@pranita)

Developer, building useful things for web.

Hi, I’m a software engineer with a strong focus on frontend development and open-source contributions. I enjoy solving real-world problems, improving developer workflows, and building systems that scale. I believe in taking ownership of my work and paying close attention to quality and detail. I'm here to document my learnings, ideas, and practical insights from building and shipping real products. If anything here resonates with you, feel free to reach out. I’m always happy to connect and learn from others.

## Responses 6

Markdown supported · ⌘↵ to post

[Anushka Singh Bhardwaj](https://hashnode.com/@singh01)

[May 6, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/6456640e36873323f6d73635)

Nice article!! You clearly put a lot of thought and effort into crafting your content.

[Saurabh Rawat](https://hashnode.com/@SaurabhR)

[Mar 8, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640810706c8cbdd4116b88a7)

Well written and informative.I learned a lot from reading it.

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Mar 9, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640810706c8cbdd4116b88a7#reply-640990d46b5ccef6ff20ec81)

Thanks, Saurabh! Glad that you got to learn something from it.

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/6407678fc9fcfad441633142)

Very interesting and well written 👏. It was interactive throughout and great attention to minute details.

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/6407678fc9fcfad441633142#reply-64078659068648dcc7ab3b79)

Grateful that you liked it!

[Abin John](https://hashnode.com/@abinjohn)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640747e96c8cbdd4116b71eb)

Info-packed and fun to read!

[Abubakar Muhammad Sadiq](https://hashnode.com/@sadiqcodes)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640747e96c8cbdd4116b71eb#reply-640757696c8cbdd4116b74d3)

thanks

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640747e96c8cbdd4116b71eb#reply-64075f5d6c8cbdd4116b75d8)

Thanks, Abin!

[SANGEETHA JULA](https://hashnode.com/@sangeetha13)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640741c96c8cbdd4116b70c1)

Very interesting and well written.🙌

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640741c96c8cbdd4116b70c1#reply-64075f476c8cbdd4116b75d1)

Thank you!

[Anand Baraik](https://hashnode.com/@anandbaraik)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640740856c8cbdd4116b7037)

Khub chan! It's a good read for me. I'll dive deep into it now. Got overview of everything.

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Mar 7, 2023](https://hashnode.com/posts/inside-javascripts-runtime-callstack-event-loop-callback-and-job-queues/64073a0dd9f4992dee2e2710/comment/640740856c8cbdd4116b7037#reply-64075f396c8cbdd4116b75cb)

Thanks, Anand! Glad you liked it!
