reading-notes

Reading Notes for Codefellows!


Project maintained by AlanYHung Hosted on GitHub Pages — Theme by mattgraham

Code 301

Reading 10

(All My Notes are attributed/sourced from the Resources directly preceding them.)

Call Stack

Author: Mozilla and Individual Contributors

Article Source

A call stack is a mechanism for an interpreter (like the JavaScript interpreter in a web browser) to keep track of its place in a script that calls multiple functions

  • When a script calls a function, the interpreter adds it to the call stack and then starts carrying out the function.

  • Any functions that are called by that function are added to the call stack further up, and run where their calls are reached.

  • When the current function is finished, the interpreter takes it off the stack and resumes execution where it left off in the last code listing.

  • If the stack takes up more space than it had assigned to it, it results in a “stack overflow” error.

    (NOTE: All the above notes comes directly from the Article word for word)

The JavaScript Call Stack - What It Is and Why It’s Necessary

Author: Charles Freeborn

Article Source

JavaScript error messages && debugging

Author: Diogo Spínola

Article Source

<– Back