Mutation methods change the original array. This lesson focuses only on push() and pop() so learners can see how an array grows and shrinks at the end.
const queue = ['first', 'second'];
queue.push('third');
const removed = queue.pop();
Use push() to add an item to the end of the array.