Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

access index of array javascript

let first = fruits[0]
// Apple

let last = fruits[fruits.length - 1]
// Banana
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #access #index #array #javascript
ADD COMMENT
Topic
Name
9+7 =