Other Terms Flashcards
interpreter
a computer program that executes a programming or scripting language directly without needing to compile the code first. JavaScript is an interpreted language.
V8
A JavaScript Engine written using C++. It is synchronous.
call stack
A mechanism for an interpreter to keep track of its place in a script that calls multiple functions.
heap memory
An area of pre-reserved computer memory that a program process can use to store data in some variable amount that won’t be known until the program is running. Heap memory is allocated explicitly by the programmer and it won’t be deallocated until it is explicitly freed.
framework
a set of pre-written code that provides a structure for developing software applications.
library
a collection of pre-written code that can be used to perform specific tasks.
module
like a library, but may only contain a few lines of code.
hoisting (code)
refers to the availability of functions and variables “at the top” of your code, as opposed to only after they are created. The objects are initialized at compile time and available anywhere in your file.
DOM
The DOM is an interface for web documents. It represents a page so programs such as JavaScript and CSS can manipulate the document structure, style, and content. The DOM represents the document as nodes and objects; that way programming languages can interact with the page.
delimiter
A sequence of one or more characters for specifying the boundary between separate, independent regions.
primitive
a value that is not an object. It is any other data type.
pass by value vs pass by reference
pass by value - a copy of the value is passed. It is two separate copies. Changes in value are independent of one another. Each value is stored in different locations in memory.
pass by reference - the caller and callee use the same variable. If the callee modifies the variable, the effect is visible to the caller’s variable. Since they are both referencing the same value in memory.
wrapper function
a function that exists to call another function. It can be used to modify the behavior of the original function without changing its source code.
what is JSON?
magic string
A string that has some special meaning in our code. This is not good practice.