...

/

Solution Review: Call Stack & Event Loop

Solution Review: Call Stack & Event Loop

In this lesson, we will discuss the solutions to the questions in the previous lesson.

Question 1: Solution review #

Explanation #

Option B is the right answer. The purpose of a call stack is to keep track of all the function calls. Whenever we invoke a function, it is pushed into the call stack first. Once it finishes execution, it ...