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.
As you can see from the map, the population of Arizona is concentrated around Phoenix, the state capital, and Tucson, its second largest city. The largest county in Arizona, by population, is Maricopa County, which is home to 3.8 million of the stateâs 6.5 million people and nine of its ten largest cities.