shift - Remove first item in an array in JavaScript

shift - Remove first item in an array and returns that item.

<script type="text/javascript">
lineOfPeople = new Array("A","B","C");
personToSeat = lineOfPeople.shift();

document.write("Please seat ",personToSeat,"<br>");
document.write("People waiting for a seat: ",lineOfPeople);

</script>