array in array javascript code example
Example 1: javascript element in array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango");
Example 2: javascript array
var colors = ["red","blue","green"];
for (var i = 0; i < colors.length; i++) {
console.log(colors[i]);
}
Example 3: javascript array
const arr = [1, 2, 3];
Example 4: 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 5: create array with number js
var foo = new Array(45);
Example 6: how to make a array in javascript
let exampleArray = ["Example", "Lorem Ispum Dolor", "I think you've got it"]
exampleArray[1]
exampleArray[0]
console.log(exampleArray[0, 1, 2]