Consider we have an array of some values and we need to access the last element of the array. Normally what we do is that let arr = [1,2,3,4,5]; let lastElement = arr[arr.length - 1] // 5 The above is the code is used to get the last element of an a...
blog.roshith.com1 min read
No responses yet.