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

What goes in the blank?

// remove and return the FIRST item
const first = queue.____();

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

shift() removes the first element and returns it.
Play Problem Solving ▸