node js array for in index code example
Example 1: javascript array
const arr = [1, 2, 3];
Example 2: access index of array javascript
let first = fruits[0]
// Apple
let last = fruits[fruits.length - 1]
// Banana
const arr = [1, 2, 3];
let first = fruits[0]
// Apple
let last = fruits[fruits.length - 1]
// Banana