Why is the array returning it as if all of the array.shift()\'s were performed first, then the console.log()\'s?
Here is my code:
var y = [1,2,3,4,5,6]