javascript get element of array code example
Example 1: how to get element of an array in javascript
var value = [a,b,c,d];
var value_b = value[1];
Example 2: return array javascript
function func() {
return [5, "string", {a: 7}];
}
var value = [a,b,c,d];
var value_b = value[1];
function func() {
return [5, "string", {a: 7}];
}