var languages = ["JS", "PHP", "JAVA"] var lastElement = languages[languages.length - 1] console.log(lastElement)