how to make a new array in javascript 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)
// 2
Example 3: how i create array in javascript
var fruits = ['Apple', 'Banana'];
console.log(fruits.length);
// 2