var colors = ["red", "blue", "green"] var firstColor = colors.shift() console.log(firstColor) // red console.log(colors) // blue green