what are arrays in javascript code example
Example 1: return array javascript
function func() {
return [5, "string", {a: 7}];
}
Example 2: array in js
var array_name = [item1, item2, ...];
//Used to store more than 1 items
function func() {
return [5, "string", {a: 7}];
}
var array_name = [item1, item2, ...];
//Used to store more than 1 items