$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #240

What goes in the blank?

// take the first element off the front
const head = queue.____();

Answer: shift (also accepted: shift, shift())

shift() removes and returns the first element of an array.
Play Problem Solving ▸