Keyword used to create a constant variable
const
Punctuation that surrounds strings
quotation marks
Keyword used to define a function
function
An array is . . .
Name two types of loops
while, for, for...of, for...in, forEach
let
1. "one two".length
2. "one two"[0]
1. 7
2. "o"
return
Index of an array's first value
0
A loop keeps executing until...
it's condition evaluates to false
What the equal sign (=) is called in a statement that creates a variable
assignment operator
True or false? "A" === "a"
false
Special variables that store input values
parameters or arguments
Which is bigger: an array's last index or its length?
Length
What you call a loop that never stops executing
infinite loop
What happens if you try to reassign a variable created with const?
error
"banana".lastIndexOf("n")
4
Show how you'd call a function called test pass to it a string, "word"
test("word")
Name of the method that adds a value to the end of an array
What kind of loop would you use to iterate through the values in an array?
for...of
let count = 5
Show how to reassign the value of count to 6
count = 6
Two ways of concatenating "a" and "b"
"a" + "b"
"a".concat("b")
What does a function return if it is missing a return statement?
undefined
let a = ["a", "b", "c", "d"]
a[a.length - 1]
"d"
True or false: anything you can do with a while loop you can do with a for loop?
true