New array method Array.prototype.at() in JavaScript
The Old way of accessing elements in an array
The usual way to access an element from an array is like this
let arr = [1,2,3,4,5]
let num = arr[1]
num //2
With this method, we cannot access the elements with the negative Index like
let arr = [1,2,3...
maniteja19.hashnode.dev2 min read