JavaScript Array at() Method
JavaScript Array at() method returns an element at the specified index, accepting positive and negative integers. Negative integers count back from the end of the array (-1 is the last element). Syntax array.at(index) Parameters index(optional): It specifies the index (position) of the array element to be returned. The default is 0. Return value Returns an indexed element … Read more