Current Size:
Chakra BreakPoints
base0px
sm480px
md768px
lg992px
xl1280px
2xl1536px
Current Height:Width
widthpx
heightpx

Subjects

JavaScript Fundamentals

Date Created: 2021/03/15

Last Update: 2022/10/21

#JavaScript #general #notes

JavaScript Fundamentals

Definitions

The Stack

The stack is an ordered data structure. That keeps track of the functions that have been invoked. The stack is modified when a function is invoked.

When a function is invoked the details are saved to the top of the stack. (pushed to the top)

When a function is returned the information is taken off the top of the stack. (popped of the top)

The STACK is processed top to bottom

Heap

The area in memory where data is stored.

The Queue

The queue is an ordered list of functions waiting to be placed on the stack. First in first out (FIFO)

The Event loop

Functionality in the JavaScript runtime that checks the queue when the stack is empty. If the stack is empty, the front of the queue is placed in the stack.

JavaScript is Single Threaded

Single Threaded: Code execution is linear. Code that is running cannot be interrupted by something else going on in the program.

JavaScript Classes

Classes in JavaScript - MDN Web Docs

More Notes

All Notes
HomeProjects

Links

Home Articles Notes Projects About Style Guide Site Credits

Contact

 [email protected]

Location

🌎 Earth