| Viewed 217 times

How I can get the Last Element in an Array in JavaScript?


I need a function to reverse an array. a function that accepts an array and returns the last item in the array.