How to get the last item of an array with Javascript?
I will show you three way to get it and how fast each of these methods are...
In this short video you will discover how the get the last item of an array with JS using the length property, the slice and the pop method.
At the end of the short I will compile the program to show you how many seconds each of these methods took to find the last item of array.
#javascript #js #lastitemarray #dev