jscript new array code example
Example 1: how to make an array in javascript
var names = ["Sanjith", "Pranav", "Aadya", "Saharsh"]
Example 2: return array javascript
function func() {
return [5, "string", {a: 7}];
}
var names = ["Sanjith", "Pranav", "Aadya", "Saharsh"]
function func() {
return [5, "string", {a: 7}];
}