Chapter 2: Working with functions, data types and operators

Chapter 2: Working with functions, data types and operators

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Boolean value

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)

Boolean value

Front

a logical value of "true" or "false"

Back

primitive types

Front

Data types that can be assigned only a single value.

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

function

Front

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

Back

function braces

Front

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

Back

textContent property

Front

a property similar to the 'innerHTML' propery except that it's value excludes any HTML markup

Back

actual parameters / arguments

Front

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

Back

Arithmetic Operators

Front

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

Back

conditional operator

Front

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

Back

return statement

Front

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

Back

named function

Front

a set of related statements that is assigned a name

Back

floating point number

Front

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

Back

adding an event listener

Front

specifying an event handler with the addEventListener() method.

Back

integer

Front

A positive or negative number with no decimal places

Back

anonymous function

Front

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

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

data type

Front

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

Back

comparison operator / relational operator

Front

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

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

statically typed / strongly typed

Front

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

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

postfix operator

Front

an operator that is placed after a variable name.

Back

duck types / loosely typed / dynamically typed

Front

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

Back

function definition

Front

The lines that make up a function

Back

function statements

Front

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

Back

falsy values

Front

six values that are treated in comparison operations as the boolean value 'false'

Back

function call

Front

the code that calls a function, which consists of the function name followed by parentheses

Back

empty string

Front

a zero-length string value.

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

Compound assignment operator

Front

assignment operators other than the equal sign, which perform mathermatical calculations on variables and literal values in an expression and then assign a new value to the left operand

Back

exponential notation / scientific 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

call

Front

to invoke a function from elsewhere in your code

Back

escape character

Front

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

Back

passing arguments

Front

sending arguments to the parameters of a called function.

Back

Browser console / console

Front

a browser pane that displays error messages.

Back

Assignment Operator

Front

An operator used for assigning a value to a variable.

Back

unary operator

Front

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

Back

prefix operator

Front

An operator placed before a variable.

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

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

truthy values

Front

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

Back

parameter

Front

a variable that is used within a function

Back

Associativity

Front

the order in which operators of equal precendence execute

Back

binary operator

Front

an operator that requires an operand before and after it.

Back