If one wants to get the last element in one go, he/she may use Array#splice() : Here, there is no need to store the split elements in an array, and then get to the last element.
Welcome to City of Page, Arizona. Page is a small town in northern Arizona located on the southern shores of magnificent Lake Powell.
The Copper State. Arizona ('Hoozdo Hahoodzo'; O'odham: 'AlÄ­ á¹£onak') is a state in the southwestern region of the United States. It is also part of the Western United States and of the Mountain West states. It is the sixth most extensive and the 15th most populous of the 50 states. Its capital and largest city is Phoenix.