Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript last element

// es13(2022)
let foo = [1,2,3,4,5];
foo.at(-1); // === 5
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #javascript #element
ADD COMMENT
Topic
Name
1+6 =