index array javascript code example
Example 1: MDN array length
const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];
console.log(clothing.length);
Example 2: javascript array
const arr = [1, 2, 3];
Example 3: array javascript
var familly = [];
var familly = new Array()
var familly = [Talel, Wafa, Eline, True, 4];
console.log(familly[0])
familly[0] + "<3" + familly[1]
familly[3] = "Amir";
Example 4: get array by array of indices js
var resultArr = indexArr.map(i => fruitier[i])
Example 5: access index of array javascript
let first = fruits[0]
let last = fruits[fruits.length - 1]