15 points · by ronreiter · 13y ago · 8 comments
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 :)