function to create array 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 myVar = ["1","2","3"];
var names = ["Sanjith", "Pranav", "Aadya", "Saharsh"]
let myVar = ["1","2","3"];