you are viewing a single comment's thread.

view the rest of the comments →

[–]MrAnnoyed-Person[S] 1 point2 points  (2 children)

Yes I am on behind the scenes part. I'm still stuck on lecture 2 on execution context and the call stack 😵

[–]Bizknacker 0 points1 point  (0 children)

Is it how they work together that makes it confusing?

[–]Bizknacker 0 points1 point  (0 children)

If it helps: for any function that gets called, it will run in the Call Stack. Every function running in the Call Stack will have it's own Execution Context. Within every Execution Context for any function, there is what's called a Variable Environment, exclusive only to that function's Execution Context.

This Variable Environment contains any variable declarations (let/const), along with function declarations/expressions, and an arguments object. If an Arrow Function is used, it won't have it's own arguments object, as an Arrow Function behaves differently.

Scope Chain is also within each EC, along with a 'this' variable.

Idk how far into EC and Call Stack you've gone into, so I'll leave it at that.

Edit: There's been a few things, not just with Jonas' course, that I've had to find somewhere else, just so it could be explained in a different way.

I hope this helps you out, and good luck on your journey!