What goes in the blank?
// take the first element off the front const head = queue.____();
Answer: shift
shift() removes and returns the first element of an array.
Play Problem Solving ▸
// take the first element off the front const head = queue.____();
Answer: shift