04.1 - Print the last item in array - JS Arrays
Channel: 4Geeks Academy
Date: 23/11/2020

You can use the array.length property to get the size of the array and subtract 1 to get the last possible index/position in that array.

This video is part of a series of interactive tutorials about Javascript Arrays and Looping, you can access the tutorial here:
https://breatheco.de/interactive-exercise/javascript-array-loops-exercises

📢 Follow me here and on Twitter @alesanchezr for free coding courses and tutorials like this.
For more interactive tutorials like this go to: 
https://breatheco.de/interactive-exercises