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

Arrays use a _______ to iterate

for loop

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 will be printed by this code?

name, hometown, occupation

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

var classroom = {
     "student": [Emma, Denzall, Conarion, Ryan],

     "Count": 4,

     "allPassing": true

}
console.log( classroom.student[student.length - 1] )

Ryan

300

_____ are used to separate keys and values within an object, while _____ are used to separate properties or key-value pairs.

colons, commas

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


var classroom = {
     "student": [Emma, Denzall, Conarion, Ryan],

     "count": 4,

     "allPassing": true

}
console.log( classroom["count"] / 2 + 2  )

4

400

What is the name of Operation Spark's Robo 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

Name 6 different data types in Javascript.

Strings, Numbers, Booleans, Arrays, Objects, Undefined 

M
e
n
u