Learn JS - Free Interactive JavaScript Tutorial
learn-js.org
learn-js.org
input:
var myQueue = [];
myQueue.push(1);
myQueue.push(2);
myQueue.push(3);
console.log(myQueue.unshift());
console.log(myQueue.unshift());
console.log(myQueue.unshift());
output: 3
3
3maybe you should write some :)