Push/Pop Quiz


Which method is used to remove an item from the end of an array?

Show Answer

Which method is used to add an item to the end of an array?

Show Answer

Which method is used to add an item to the front of an array?

Show Answer

Which method is used to remove an item from the front of an array?

Show Answer

Write a while loop that will remove each item from the end of beverages and place it at the beginning of foods.

foods = ["bread", "cheese", "onions", "bananas"]
beverages = ["juice", "water", "vodka", "coffee"]

Show Answer