javascript list array items code example
Example 1: return array javascript
function func() {
return [5, "string", {a: 7}];
}
Example 2: what are the two ways to create an array in javascript examples?
let scores = new Array(9,10,8,7,6);
function func() {
return [5, "string", {a: 7}];
}
let scores = new Array(9,10,8,7,6);