Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
Trace how JavaScript saves variables to memory and pushes function calls onto the stack.
Trace the code execution. Notice how the Call Stack and Memory update as we step through.
const num = 3;function multiplyBy2(n) {return n * 2;}const output = multiplyBy2(num);