HELP: a problem about Array.pop()

Hi, please could you format your code. There are instructions on this topic: How to Post Your Code With Radiant, Harmonious Formatting.