var heroes = ["Batman", "Superman", "Hulk"]; var lastHero = heroes.pop(); // Returns last elment of the Array // lastHero = "Hulk"