7. Popping the Hood


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.


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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.