Python Push Pop Array Js Questions