javascript get second last element of array code example
Example: javascript get second last element of array
const numbers = ["one", "two", "three", "four"];
console.log(numbers[numbers.length - 2]);
const numbers = ["one", "two", "three", "four"];
console.log(numbers[numbers.length - 2]);