Chapter 2 Key Terms Flashcards
Anonymous Function
A function with no name assigned to it.
Actual Parameters
Values supplied to a method or function call statement.
Arguments
which means that arguments has a length property and properties indexed from zero, but it doesn’t have Array’s built-in methods like forEach () or map ().
Arithmetic Operators
Operators used to perform mathematical calculations, such as addition, subtraction, multiplication, and division.
Assignment Operator
assign values to JavaScript variables.
Associativity
The order in which operators of equal precedence execute.
Binary Operator
An operator that requires an operand before and after it.
Boolean Value
A logical value of true or false.
Browser Console
A browser pane that displays error messages.
Block Scoped
variable defined within a block will not be accessible from outside the block.
Bubbling Phase
The propagation of an event moving up the object hierarchy from the most specific object to the most general or from the innermost object to the browser window.
Call
A statement that invokes a function to perform a task or calculate a value.
Capture Phase
The propagation of an event moving down the object hierarchy from the most general object to the most specific or from the browser window to the innermost object.
Command Block
Multiple JavaScript statements enclosed within a set of opening and closing curly braces.
Comparison Operator
An operator to compare two operands and determine their relative value.
Compound assignment operators
Assignment operators other than the equal sign, which perform mathematical calculations on variables and literal values in an expression, and then assign a new value to the left operand.
Conditional operator
The ?: operator, which executes one of two expressions based on the results of a conditional expression.
Console
A browser pane that displays error messages.
Data type
The specific category of information that a variable contains, such as numeric, Boolean, or string.
Duck typed
A programming language that does require variable data types of be explicitly declared.
Dynamically typed
A programming language that does require variable data types of be explicitly declared.
Empty string
A zero-length string value.
Escape character
The backslash character (), which tells JavaScript compilers and interpreters that the character that follows it has a special purpose.
Escape sequence
The combination of the escape character () with one of several other characters, which inserts a special character into a string; for example, the \b escape sequence inserts a backspace character.
Event Listener
A method that listens for events that propagate through the object hierarchy either in the capture phase or the bubbling phase.
Event Model
A model that describes how objects and events interact within the web page and web browser.
Exponential notation
A shortened format for writing very large numbers or numbers with many decimal places, in which numbers are represented by a value between and multiplied by raised to some power.
Falsy values
Values or expressions that are treated in comparison operations as the Boolean value false.
Floating Point Number
A number that contains decimal places or that is written in exponential notation.
Function
A related group of JavaScript statements that are executed as a single unit.
Function Scope
Scope in which a variable can only be referenced within the function in which it is declared by the var keyword.
Global Scope
Scope in which a function or variable is defined outside of any command block or function and thus is accessible throughout the program.
Global Variable
A variable that is accessible to all functions and statements within a program.
Integer
A positive or negative number with no decimal place.
Local Scope
Scope in which a function or variable is available only to a command block or a function but not outside those contexts.
Local Variable
A variable that is declared inside a function and is available only within the function in which it is declared, because it has local scope.
Logical operators
The Or (||), And (&&), and Not (!) operators, which are used to modify Boolean values or specify the relationship between operands in an expression that results in a Boolean value.
Loosely typed
A programming language that does require variable data types to be explicitly declared.
Modulus
Operator represented by the % character that returns the remainder after division.
Named Function
A function that is identified by an assigned name.
operator precedence
Operator Precedence
The system that determines the order in which operations in an expression are evaluated.
Parameter
A variable that is used within a function.
Passing Arguments
The pass statement is a null operation; nothing happens when it executes.
Postfix operator
An operator that is placed after a variable name.
Prefix operator
An operator that is placed before a variable name.
primitive types
Primitive types
Data types that can be assigned only a single value.
Relational Operator
An operator to compare two operands and determine their relative value.
Scientific Notation
A shortened format for writing very large numbers or numbers with many decimal places, in which numbers are represented by a value between and multiplied by raised to some power.
Scope
A characteristic of a function or variable that indicates where it can be referenced within the program code.
Statically typed
Description of a programming language that requires the declaration of variable data types.
Strongly typed
Description of a programming language that requires the declaration of variable data types.
Template Literal
A text string enclosed with the backtick character ( `) which allows the string to be written across several lines and be made available to JavaScript tools for handling text characters.
Ternary Operator
An operator that takes three operands.
Truthy Values
A value or expression that is treated as the Boolean value.
Unary operator
An operator that requires just a single operand either before or after it.