Objects
Arrays
For Loops
Iteration
Miscellaneous
100

Objects are a ________ data type

Complex

100

What is the first index of an array?

0

100

What is the proper order for these statements in a for loop: Stop, Update, Start?

Start, Stop, Update

100

Objects use a _______ loop to iterate. Arrays us a _____ loop to iterate.

for-in; for

100

Which of the following are used to create Objects and which are used to create Arrays?:


()   []   {}   <>

{} for Objects

[] for Arrays

200

Identify the values in this object

"Ben", "Weston", "Instructor"

200

How would you access "hey" from this array?

array[1];

200

Correctly place these statements in the for loop: i++, var i = 0; i < 10

for() {}

var i = 0; i < 10; i++

200

What is iteration? 

Iteration is the process of accessing values in an Array using a Loop

200

What data type are keys of an Object?

Strings

300


How would you access "Weston" from this object?

person.hometown or person['hometown']

300

Arrays use _______ Notation to access individual elements.

Bracket

300

What values are printed to the console?

0 through 19, counting up by 1s

300

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

300

In an object, keys are _____ data type while values can be ___ data type.

string; any 

400

Objects are a collection of ______ pairs called ______

Key:Value, Properties

400

How would you access the last element of any array?

var array = [...]
var lastElement = ???;

array[array.length - 1];

400

What are the values printed to the console?

50, 40, 30, 20, 10

400

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!

400

What is the name of Operation Spark's Mascot?

Hallebot

500

Open jsbin.com and create an object called user that has 3 properties: firstName, lastName, and age. It should have 2 different data types.

500

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;

500

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.

500

Fill in the three blank spaces to print out each element of the array

0;

array.length;

array[i];

500

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

M
e
n
u