Objects are a ________ data type
Complex
What is the first index of an array?
0

What is the proper order for these statements in a for loop: Stop, Update, Start?
Start, Stop, Update
Objects use a _______ loop to iterate. Arrays us a _____ loop to iterate.
for-in; for
Which of the following are used to create Objects and which are used to create Arrays?:
() [] {} <>
{} for Objects
[] for Arrays

Identify the values in this object
"Ben", "Weston", "Instructor"

How would you access "hey" from this array?
array[1];
Correctly place these statements in the for loop: i++, var i = 0; i < 10
for() {}
var i = 0; i < 10; i++
What is iteration?
Iteration is the process of accessing values in an Array using a Loop
What data type are keys of an Object?
Strings

How would you access "Weston" from this object?
person.hometown or person['hometown']
Arrays use _______ Notation to access individual elements.
Bracket

What values are printed to the console?
0 through 19, counting up by 1s
Replace the ? in the for loop below to correctly iterate over every index within the Array names?
var names = ['ben', 'taylor', 'kendall', 'edem', 'daniel'];
for(var i = 0; ? ; i++) {
console.log(names[i]);
}
i < names.length OR i <= names.length - 1
In an object, keys are _____ data type while values can be ___ data type.
string; any
Objects are a collection of ______ pairs called ______
Key:Value, Properties
How would you access the last element of any array?
var array = [...]
var lastElement = ???;
array[array.length - 1];

What are the values printed to the console?
50, 40, 30, 20, 10
Would you use dot notation or bracket notation to iterate through the menu object below?
var menu = {
"apps": "mozz stix",
"entree": "sushi",
"dessert": "creme brulee",
};
either one works!
What is the name of Operation Spark's Mascot?
Hallebot
Open jsbin.com and create an object called user that has 3 properties: firstName, lastName, and age. It should have 2 different data types.

var grades = [85, 67, 93, 79, 88, 72, 59, 95, 76];
I want to add 5 points to each of these grades. What is the best way to do this? How will you change each element of the array?
Use a for loop, iterate through each index of the array, grades[i] += 5;
Provide an example of an infinite loop / explain how an infinite loop can occur.
An infinite loop occurs when the stop condition can only ever be true.

Fill in the three blank spaces to print out each element of the array
0;
array.length;
array[i];
This is a javascript library that makes websites interactive using simple functions.
hint: it was used behind-the-scenes in the creation of your platformer project.
jQuery