Chapter 4 Key Terms Flashcards
Break mode
The temporary suspension of program execution in a browser so the programmer can monitor values and trace program execution.
Breakpoint
A designation added to a specific statement in a program that causes program execution to pause when it reaches that statement.
Bug
Any error in a program that causes it to function incorrectly, whether because of incorrect syntax or flaws in logic.
Bulletproofing
Writing code that anticipates and handles potential problems.
Call Stack
The ordered list maintained by a JavaScript processor containing all the procedures, such as functions, methods, or event handlers, that have been called but have not yet finished processing.
Commenting out
A debugging technique in which program errors are located by changing potentially incorrect program code to comments.
Debugging
The act of tracing and resolving program errors.
Dependencies
The relationships that exist when statements depend on the successful execution of other statements or functions.
Driver program
A simplified, temporary program that is used for testing functions and other code.
Event Listener breakpoint
A breakpoint that is activated when an event occurs within the web page or browser.
Exception
An error that occurs in the execution of a program.
Exception handling
A method of bulletproofing code that allows a program to handle errors as they occur in the execution of the program.
Linting
The process of running code through a program that flags common issues that may affect code quality and performance.
Load-time error
An error that occurs when the program is initially loaded by the browser.
Logging
A debugging technique that involves writing values directly to the browser console.
Logic
The order in which various parts of a program run, or execute.
Logic error
A flaw in a program’s design that prevents the program from running as anticipated.
Runtime error
An error that occurs when a JavaScript interpreter encounters a problem while a program is executing.
Scope window
A section of the browser debugger pane that lists all local and global variables and objects available to the program and their current values.
Step in
The stepping option that executes an individual line of code and then pauses until instructed to continue; also known as step into.
Step into
The stepping option that executes an individual line of code and then pauses until instructed to continue; also known as step into.
Step out
The stepping option that executes all remaining code in the current function.
Step over
The stepping option to skip function calls; the program still executes each function stepped over, but appearing in the debugger as if a single statement executes.
Stepping options
Options in browser debugging tools to continue program execution after program breaks.
Strict mode
A JavaScript processing mode in which adherence to JavaScript syntax is strictly enforced.
Syntax
the arrangement of words and phrases.
Syntax error
An error that occurs when an interpreter fails to recognize code, such as a statement that is not recognized by a browser’s scripting engine.
Throw
A JavaScript statement used to trigger an error event.
Tracing
A debugging technique that involves examining individual statements in an executing program.
User error
An error initiated by the user through operating the program in a way not intended by the developer.
Watch window
A section of the debugger pane used for tracking the changing values of a variable or expression