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.
Arizona is a landlocked state situated in the southwestern region of the United States of America. Arizona shares land borders with Utah to the north, the Mexican state of Sonora the south, New Mexico to the east, and Nevada to the west.Arizona shares water borders with California and the Mexican state of Baja California to the west along the Colorado River.Arizona is also one of the Four Corners states, at which Arizona touches Colorado.hile the upper Gila River is free-flowing, the portion of the river below the Phoenix area is usually either a trickle of completely dry because of the diversion of water for irrigation. The only major dam on the Gila River is Coolidge Dam, located 31 miles (50 km) southeast of Globe, Arizona.