Chapter 2 - Functions, Data Types and Operators

Chapter 2 - Functions, Data Types and Operators

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

integer

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (45)

Section 1

(45 cards)

integer

Front

a positive or negative number with no decimal places.

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

function definition

Front

the lines that make up a function.

Back

escape character

Front

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

Back

empty string

Front

a zero-length string value.

Back

return statement

Front

a statement in a function that returns a value to the statement that called the function.

Back

data type

Front

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

Back

unary operator

Front

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

Back

named function

Front

a set of related statements that is assigned a name.

Back

function braces

Front

the set of curly braces that contain the function statements in a function definition.

Back

strongly typed

Front

description of a programming language that requires you to declare the data types of variables.

Back

floating-point number

Front

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

Back

parameter

Front

a variable that is used within a function.

Back

loosely typed

Front

description of a programming language that does not require you to declare the data types of variables.

Back

call

Front

to invoke a function from elsewhere in your code.

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

comparison operator

Front

an operator used to compare two operands and determine if one value is greater than another.

Back

escape sequence

Front

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.

Back

function

Front

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

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

truthy values

Front

all values other than the six falsy values; truthy values are treated in comparison operation as the Boolean value true.

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

compound assignment operators

Front

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.

Back

function statements

Front

the statements that do the actual work of a function, such as calculating the square root of the parameter, or displaying a message on the scree, and which must be contained within the function braces.

Back

associativity

Front

the order in which operators of equal precedence execute.

Back

local variable

Front

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

anonymous function

Front

a set of related statements with no name assigned to it.

Back

passing arguments

Front

sending arguments to the parameters of a called function.

Back

Boolean value

Front

a logical value of true or false

Back

browser console

Front

a browser pane that displays error messages.

Back

conditional operator

Front

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

Back

concatenation operator

Front

the plus sign (+) when used with strings; this operator combines, or concatenates, string operands.

Back

operator precedence

Front

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

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

textContent property

Front

a property similar to the innerHTML property, except that its value excludes any HTML markup.

Back

arithmetic operators

Front

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

Back

false values

Front

six values that are treated in comparison operations as the Boolean value false.

Back

arguments

Front

the variables or values that you place in the parentheses of a function call statement.

Back

postfix operator

Front

an operator that is placed after a variable name.

Back

adding an event listener

Front

specifying an event handler with the addEventListener() method.

Back

binary operator

Front

an operator that requires an operand before and after it.

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

primitive types

Front

data types that can be assigned only a single 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