This is used to store key/value pairs.
An Object
What is returned when "This" keyword is used in a global scope?
Undefined.
myArray[2] would retrieve what item within this array?
Third item or "Octopus".
Snippets, VS Code, and your console are ways to do what within your browser?
Write and execute code.
What would
Number("Grapefruit") return?
NaN
This is data that is passed into a called function.
An Argument.
DOM stands for what?
Document Object Model
let myArray = ["Cat", "Dog", "Octopus", "Lemon"]
myArray.push("Goldfish")
What will this output?
Add "Goldfish" to the end of the array.
Printing or "showing" JavaScript information/data within your dev tool console is known as what?
Console.log
What is the name of an object represented as true or false?
A Boolean.
These are placeholders in a function to hold meaning for data received by a function call.
A Parameter.
What array property is used to find the length of an array?
Array.length
let myArray = ["Cat", "Dog", "Octopus", "Lemon"]
let newArray = myArray.splice(2, 0, "Hawk");
What will newArray equal when this is executed?
"Cat", "Dog", "Hawk", "Octopus", "Lemon"
What does the .shift() array method change when the array is called on?
Changes the length of an array.
What will output in the console.log?
let cat="Heathcliff"
cat = "Hello Kitty"
console.log(cat)
"Hello Kitty"
This returns an array of modified elements.
.Map
Let, const, and var allow you to create what?
A new variable.
let myArray = ["Cat", "Dog", "Octopus", "Lemon"]
What will
let myArray = myArray.splice(1, 1, "Scout")
change within the array?
Change "Dog" to "Scout".
What will appear in the console?
const str1 = "Battlestar Galactica"
const str2 = "is better than Dr. Who?"
console.log(str1.concat(' ', str2));
"Battlestar Galactica is better than Dr. Who?"
What method removes whitespace from the beginning and end of a string?
.trim()
What keyword is used to point to the direct function/object you're inside of?
This
Text typically written in quotation marks is known as what?
A string.
let myArray = ["Cat", "Dog", "Octopus", "Lemon"]
What willmyArray.pop()
change within the array?
Removes "Lemon".
What method converts all string characters into lowercase?
.toLowerCase()
What will alphaNumeric equal when executed?
const letters = ["a", "b", "c"];
const numbers = [1, 2, 3];
const alphaNumeric = letters.concat(numbers);
['a', 'b', 'c', 1, 2, 3]