How to get last array element in JavaScript

Arrays
By Jad Joubran · 
Last updated Feb 28, 2024
const apps = ["phone", "calculator", "clock"];

apps.at(-1);
"clock"
String.at() on Learn JavaScript Blog