Chapter 3 Key Terms Flashcards
Array
A set of data represented by a single variable name.
Array Literal
A single statement that declares an array variable and its content.
Browser Test
A conditional statement that tests whether a feature of the JavaScript language is supported by the browser.
Callback Function
A function that is passed as a parameter to another function or method.
Conditional Statement
A special type of JavaScript statement used for making decisions.
Controlling Flow
Changing the order in which JavaScript code is executed.
Counter
A variable that is incremented or decremented with each iteration of a program loop.
Decision Making
The process of choosing which code to execute at a given point in an application.
Decision-making statement
A special type of JavaScript statement used for making decisions.
Decision-making structure
A special type of JavaScript statement used for making decisions.
Element
An individual value contained in an array or a page object marked within an HTML file.
Fallthrough
A situation in which execution of a switch statement does not stop after the statements for a particular case label are executed, but continues evaluating the rest of the case labels in the list.
HTML Collection Project
A group of HTML elements within the Document Object Model.
Index
A number associated with an element in an array, which represents the element’s position within the array.
Infinite Loop
A program loop than repeats without end.
Iteration
Each repetition of a program loop.
Matrix
Numbers stored in a rectangular grid of rows and columns.
Multidimensional Array
A data structure in which two or more arrays are nested within one another.
Nested decision-making structure
The type of structure created by nesting one decision-making statement within another decision-making statement.
Posttest loop
A program loop in which the stopping condition is evaluated after the command block has been executed at least once.
Pretest loop
A program loop in which the stopping condition is evaluated before each iteration of the command block.
Program loop
A command block that is executed repeatedly until a stopping condition is met.
Spaghetti code
A pejorative programming term that refers to convoluted or poorly written code.
Sparse array
An array in which some array elements are left undefined so that the length of the array is not the same as the number of defined values.