Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascipt get last element of array

const arr = [1,2,3] ;
console.log(arr[arr.length - 1]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascipt #element #array
ADD COMMENT
Topic
Name
2+2 =