Arrays and collections

let intQueue = []
intQueue.push(1)
intQueue.push(3)
intQueue.push(5)

let top = intQueue[0]
//top is 1
let first = intQueue.shift()
//first is 1
let second = intQueue.shift()
//second is 3
let third = intQueue.shift()
//third is 5

console.log("top is", top)
console.log("first is", first)
console.log("second is", second)
console.log("third is", third)