Algorithm Of Push And Pop In Javascript How To Delete