7. Popping the Hood

Overview

By the end of this chapter, you will be able to differentiate between single-threaded and multi-threaded execution; describe JavaScript's execution process; show how the call stack and memory heap interact with the other elements of the runtime; write code that works in tandem with JavaScript's garbage collection process; and debug memory-related issues in the browser.

In this chapter, we'll look at how JavaScript is executed in the browser and how it manages important system resources such as memory.

Introduction

In the previous two chapters, you learned about some of the core concepts of JavaScript, were introduced to the ideas of the event loop, and looked at how JavaScript handles the process of memory ...

Get The JavaScript Workshop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.