Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get first element of array

let array = [1,2,3] // makes your array
array[0] // returns first element of your array.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #element #array
ADD COMMENT
Topic
Name
5+4 =