We use this function to print values.
What is console.log()?
!=
What is the not equals operator?
The placeholder variables used for input into a function. They are placed within the parentheses of a function declaration.
What are parameters?
Starting at 0, these are like addresses that elements of an array can be found at.
What are indexes?
This type of loop should be used when you know the exact number of times you want the loop to execute.
What is a for loop?
This keyword indicates that a variable is being declared.
What is let?
We use this function to get user input?
What is READLINE.question()?
The keyword used to output a value from a function.
What is return?
This method adds an element to the end of an array.
What is push()?
This type of loop runs an unspecified number of times, and will continue to as long as its condition is true.
What is a while loop?
This data type is a text value, encased in quotation marks.
What is a string?
let num = 3 console.log(num <= 4-1)
What is true?
The actual values passed into a function as input.
What are arguments?
let myGames = [“Fortnite”, “Valorant”, “Call of Duty“, Animal Crossing”, “Mario Kart”] /*This code would replace "Call of Duty" with "Minecraft" */
What is myGames[2]="Minecraft"?
Commonly used in loops, this operator will increment a variable by one every time.
What is ++? (e.g. i++)
This data type can only be a true or false value.
What is a boolean?
if((true && false) || true) { console.log("Team");} else { console.log("Edge") }
What is "Team"?
//function declaration function add(a, b) { return a + b } //What is this? add()
What is a function call?
This code would access the last element of an array named myArray.
What is myArray[myArray.length-1]?
let animals = [“wolves”, “elephants”, “snakes”, “lions”] for(let i = 0; [MISSING]; i++) { console.log(animals[i]);} /*Fill in the missing part of the loop declaration, so that it only prints every element of the animal array */
What is i < animals.length?