make array in js code example
Example 1: how to make an array in javascript
var names = ["Sanjith", "Pranav", "Aadya", "Saharsh"]
Example 2: how to create an array in javascript
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
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: js arrays
const colors = ["red", "orange", "yellow"];
colors[0];
colors.length;