So you have a , and you want to get the last element. Take this example, for instance: Javascript array let myArray = [ '🔩', '⚡️', '🔑', '🖇' ] This array has 4 items - and as you might know, to get any element within it, we can use the square bracket notation . For example, to get the lighting bolt, we can use : [] myArray[1] let myArray = [ '🔩', '⚡️', '🔑', '🖇' ] console.log(myArray[1]) // ⚡️ Since arrays start at an index of , the first element is actually , and so on. So to get the last element of the array, we can use . This gets the length of the array ( ), and subtracts 1, to take into consideration that arrays start counting at . Therefore, to get the last element of an array using the square bracket notation, we can do something like this: 0 myArray[0] myArray.length - 1 4 0 let myArray = [ '🔩', '⚡️', '🔑', '🖇' ] console.log(myArray[myArray.length-1]) // 🖇 This is the most common way to get the last element of an array. However, you can also use the method to do the same thing: at let myArray = [ '🔩', '⚡️', '🔑', '🖇' ] console.log(myArray.at(myArray.length-1)) // 🖇 And even better, you can simply write ! This greatly simplifies getting the last element of an array to a simple expression: myArray.at(-1) let myArray = [ '🔩', '⚡️', '🔑', '🖇' ] console.log(myArray.at(-1)) // 🖇 As you might expect, starts counting backward, so will return the key: at at(-2) let myArray = [ '🔩', '⚡️', '🔑', '🖇' ] console.log(myArray.at(-2)) // 🔑 Also published here.