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.
Back
return statement
Front
a statement in a function that returns a value to the statement that called the function
Back
adding an event listener
Front
specifying an event handler with the addEventListener() method.
Back
primitive types
Front
data types that can be assigned only a single value
Back
comparison operator
Front
an operator used to compare two operands and determine if one value is greater that another
Back
escape character
Front
the backslash character ( \ ) with one of several characters, which inserts a special character into a string
Back
binary operator
Front
an operator that requires an operand before and after it.
Back
function statements
Front
the statements that do the actual work of a function, such as calculating the square root of a parameter, or displaying a message of the screen, and which must be contained within the function braces.
Back
data type
Front
the specific category of information that a variable contains, such as numeric, Boolean, or string.
Back
logical operators
Front
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
Back
assignment operator
Front
an operator used for assigning a value to a variable
Back
prefix operator
Front
an operator that is placed before a variable name
Back
arguments
Front
the variables or values that you place in the parentheses of a function call statement
Back
named function
Front
a set of related statements that is assigned a name
Back
unary operator
Front
an operator that requires just a single operand either before or after it.
Back
concatenation operator
Front
the plus sign (+) when used with strings; this operator combines, or concatenates, string operands.
Back
browser console
Front
a browser pane that displays error messages
Back
floating-point number
Front
a number that contains decimal places or that is written in exponential notation
Back
conditional operator
Front
the ?: operator, which executes one of two expressions based on the results of a conditional expression.
Back
postfix operator
Front
an operator that is placed after a variable name
Back
falsy values
Front
six values that are treated in comparison operations as the Boolean value false.
Back
call
Front
to invoke a function from elsewhere in your code
Back
function
Front
a related group of JavaScript statements that are executed as a single unit
Back
anonymous function
Front
a set of related statements with no name assigned to it
Back
innerHTML property
Front
the property of a web page object whose value is the content between the element's opening and closing tags.
Back
operator precedence
Front
the system that determines the order in which operations in an expression are evaluated
Back
variable scope
Front
the aspect of a declared variable that determines where in code it can be used, either globally (throughout the code) or locally (only within the function in which it is declared).
Back
textContent property
Front
a property similar to the innerHTML property, except that its value excludes any HTML markup.
Back
integer
Front
a positive or negative number with no decimal places
Back
global variable
Front
a variable that is declared outside a function and is available to all parts of your program, because it has global scope.
Back
strongly typed
Front
description of a programming language that requires you to declare the data types of variables
Back
function definition
Front
the lines that make up a function
Back
boolean value
Front
a logical value of true or false
Back
loosely typed
Front
description of a programming language that does not require you to declare the data types of variables
Back
function braces
Front
the set of curly braces that contain the function statements in a function definition
Back
associativity
Front
the order in which operators of equal precedence execute.
Back
empty string
Front
a zero-length string value.
Back
function call
Front
the code that calls a function, which consists of the function name followed by parentheses, which contain any arguments to be passed to the function.
Back
parameter
Front
a variable that is used within a function
Back
truthy values
Front
all values other than the six falsy values; truthy values are treated in comparison operation as the Boolean value true.
Back
exponential notation
Front
a shortened format for writing very large numbers or numbers with many decimal places, in which numbers are represented by a value between 1 and 10 multiplied by 10 raised to some power.
Back
compound assignment operators
Front
assignment operators oter that 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.
Back
passing arguments
Front
sending arguments to the parameters of a called function
Back
arithmetic operators
Front
operators used to perform mathematical calculations, such as addition, subtraction, multiplication, and division.