A named location where a piece of data is stored
Variable
A single character
Char
A shorthand for a set of instructions for the computer to execute
Function
Used to execute a block of code repeatedly as long as a certain condition is met
Loops
When you name a variable but don't assign a value to it
Declaration
When we explicitly write a value into code rather than using a variable to reference it
Hardcoding
A binary true or false value
Boolean
Data that is given back by a particular function
Return value
A loop that will execute at least once
Do while loop
The name for the expression in the for loop that initializes the counter variable
The value of statement below:
myCookbook = 'The Joy of Cooking'
yourCookbook = 'How to Cook Everything'
statement = 'My favorite cookbook is ' + myCookbook
'My favorite cookbook is The Joy of Cooking'
A whole number
Integer
Placeholders in a function definition that represent values that will be given to the function at the site of the function call
Parameters
A loop that executes pending a single conditional statement
(True/false) when one variable is assigned to another variable (e.g. variable1 = variable2), they actually point to different locations in memory.
False, they will point to the same location in memory
What does will the variable myNumber hold at the end of the following code snippet?
myNumber = 1;
myNumber = myNumber + 1;
myNumber = myNumber * 2;
4
A series of characters
String
Variables that are passed in to a function in the () at the site of the function call.
ex. the string passed in to
console.log("Hello World!");
Arguments
A loop that repeats over each item in a collection
For each loop
What a lone "=" is called in programming
The assignment operator
The value of the variable finalString at the end of the following code snippet
string1 = "Hello ";
string2 = "world!";
finalString = string1 + string2;
"Hello world!"
A numerical value with a decimal point
Float or double
This is what it's called when we actually run our function
(Function) calling
A loop that takes an initialization, conditional, and iteration expression
For loop
How many different types of loops are there in JavaScript?
(Hint: there are only variations on for- and while-type loops)
5
While
Do . . . while
For
For . . . in
For . . . each