I know what is the difference between unshift() and push() methods in JavaScript, but I\'m wondering what is the difference in time complexity?
unshift()
push()
imho it depends on the javascript-engine... if it will use a linked list, unshift should be quite cheap...