ACNice post! I think you forgot to mention that both pop and shift returns the value removed from the list. This is very useful for use arrays as stacks or queues.Comment·Article·Jan 23, 2023·Arrays Cheat Sheet - JavaScript