From the course: Learning JavaScript Debugging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Find out where you are using the call stack

Find out where you are using the call stack - JavaScript Tutorial

From the course: Learning JavaScript Debugging

Start my 1-month free trial

Find out where you are using the call stack

- [Instructor] In this video we're going to look at the Call Stack in a little more detail. And see how it's a little bit like a time machine. This example looks just the same but I've added a little be it a new JavaScript for the purpose of illustrating the Call Stack. Let's scroll down a little bit. To this line. Where I have a function called goGetSomeData. Let's set a break point there and reload. Okay. So we've stopped right before this function is going to execute. Here's the Call Stack. I'm going to step into this function. We could see here we are inside goGetSomeData now. And as I'm stepping through this-- I scroll down to Scope. You could see my variables are starting to update. Returnables is now an empty array. And I have another function here called getMyReturnables. But before we get into that let's watch what happens when we click around in this Call Stack. I go back up, inside my anonymous ready function, here. To goGetSomeData. And then before that I'm into jQuery…

Contents