You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var strings = ["hello", "goodbye", "Agree", "Disagree"]
var numbers = [1,2,3,4,5]
var booleans = [true, false, false, true]
//pop removes the last element, which would be disagree in the strings array
strings.pop()
//shift removes the first element, which would be 1 in the numbers array
numbers.shift()
//push adds an element(s) to the end of an array, booleans would now have 6 elements
booleans.push(true, false)
//An index position is the number that corresponds to an element in an array. Counting elements in an array starts at 0. The second element in the "strings" array is "Agree"