javascript create from array obkect code example
Example 1: return array javascript
function func() {
return [5, "string", {a: 7}];
}
Example 2: javacript array
[element0, element1, ..., elementN]
new Array(element0, element1[, ...[, elementN]])
new Array(arrayLength)