Variables
Strings
Functions
Arrays
Loops
100

Keyword used to create a constant variable

const

100

Punctuation that surrounds strings

quotation marks

100

Keyword used to define a function

function

100

An array is . . .

an ordered list of values (strings, numbers, booleans, arrays, etc.)
100

Name two types of loops

while, for, for...of, for...in, forEach

200
Keyword that creates a reassignable variable

let

200

1. "one two".length

2. "one two"[0]

1. 7

2. "o"



200
Keyword that determines the function's output value

return

200

Index of an array's first value

0

200

A loop keeps executing until...

it's condition evaluates to false

300

What the equal sign (=) is called in a statement that creates a variable

assignment operator

300

True or false? "A" === "a"

false

300

Special variables that store input values

parameters or arguments

300

Which is bigger: an array's last index or its length?

Length

300

What you call a loop that never stops executing

infinite loop

400

What happens if you try to reassign a variable created with const?

error

400

"banana".lastIndexOf("n")

4

400

Show how you'd call a function called test pass to it a string, "word"

test("word")

400

Name of the method that adds a value to the end of an array

push
400

What kind of loop would you use to iterate through the values in an array?

for...of

500

let count = 5

Show how to reassign the value of count to 6

count = 6

500

Two ways of concatenating "a" and "b"

"a" + "b"

"a".concat("b")

500

What does a function return if it is missing a return statement?

undefined

500

let a = ["a", "b", "c", "d"]

a[a.length - 1]

"d"

500

True or false: anything you can do with a while loop you can do with a for loop?

true

M
e
n
u