Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

last element of array javascript

var lastElement = myList[myList.length - 1];
console.log(lastElement);
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #element #array #javascript
ADD COMMENT
Topic
Name
5+4 =