Chapter 2 Key Terms Flashcards

1
Q

Anonymous Function

A

A function with no name assigned to it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Actual Parameters

A

Values supplied to a method or function call statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Arguments

A

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 ().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Arithmetic Operators

A

Operators used to perform mathematical calculations, such as addition, subtraction, multiplication, and division.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Assignment Operator

A

assign values to JavaScript variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Associativity

A

The order in which operators of equal precedence execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Binary Operator

A

An operator that requires an operand before and after it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Boolean Value

A

A logical value of true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Browser Console

A

A browser pane that displays error messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Block Scoped

A

variable defined within a block will not be accessible from outside the block.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Bubbling Phase

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Call

A

A statement that invokes a function to perform a task or calculate a value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Capture Phase

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Command Block

A

Multiple JavaScript statements enclosed within a set of opening and closing curly braces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Comparison Operator

A

An operator to compare two operands and determine their relative value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Compound assignment operators

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Conditional operator

A

The ?: operator, which executes one of two expressions based on the results of a conditional expression.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Console

A

A browser pane that displays error messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Data type

A

The specific category of information that a variable contains, such as numeric, Boolean, or string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Duck typed

A

A programming language that does require variable data types of be explicitly declared.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Dynamically typed

A

A programming language that does require variable data types of be explicitly declared.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Empty string

A

A zero-length string value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Escape character

A

The backslash character (), which tells JavaScript compilers and interpreters that the character that follows it has a special purpose.

24
Q

Escape sequence

A

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.

25
Q

Event Listener

A

A method that listens for events that propagate through the object hierarchy either in the capture phase or the bubbling phase.

26
Q

Event Model

A

A model that describes how objects and events interact within the web page and web browser.

27
Q

Exponential notation

A

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.

28
Q

Falsy values

A

Values or expressions that are treated in comparison operations as the Boolean value false.

29
Q

Floating Point Number

A

A number that contains decimal places or that is written in exponential notation.

30
Q

Function

A

A related group of JavaScript statements that are executed as a single unit.

31
Q

Function Scope

A

Scope in which a variable can only be referenced within the function in which it is declared by the var keyword.

32
Q

Global Scope

A

Scope in which a function or variable is defined outside of any command block or function and thus is accessible throughout the program.

33
Q

Global Variable

A

A variable that is accessible to all functions and statements within a program.

34
Q

Integer

A

A positive or negative number with no decimal place.

35
Q

Local Scope

A

Scope in which a function or variable is available only to a command block or a function but not outside those contexts.

36
Q

Local Variable

A

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.

37
Q

Logical operators

A

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.

38
Q

Loosely typed

A

A programming language that does require variable data types to be explicitly declared.

39
Q

Modulus

A

Operator represented by the % character that returns the remainder after division.

40
Q

Named Function

A

A function that is identified by an assigned name.
operator precedence

41
Q

Operator Precedence

A

The system that determines the order in which operations in an expression are evaluated.

42
Q

Parameter

A

A variable that is used within a function.

43
Q

Passing Arguments

A

The pass statement is a null operation; nothing happens when it executes.

44
Q

Postfix operator

A

An operator that is placed after a variable name.

45
Q

Prefix operator

A

An operator that is placed before a variable name.
primitive types

46
Q

Primitive types

A

Data types that can be assigned only a single value.

47
Q

Relational Operator

A

An operator to compare two operands and determine their relative value.

48
Q

Scientific Notation

A

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.

49
Q

Scope

A

A characteristic of a function or variable that indicates where it can be referenced within the program code.

50
Q

Statically typed

A

Description of a programming language that requires the declaration of variable data types.

51
Q

Strongly typed

A

Description of a programming language that requires the declaration of variable data types.

52
Q

Template Literal

A

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.

53
Q

Ternary Operator

A

An operator that takes three operands.

54
Q

Truthy Values

A

A value or expression that is treated as the Boolean value.

55
Q

Unary operator

A

An operator that requires just a single operand either before or after it.