js array item code example
Example 1: array of objects javascript
var widgetTemplats = [
{
name: 'compass',
LocX: 35,
LocY: 312
},
{
name: 'another',
LocX: 52,
LocY: 32
}
]
Example 2: array in js
function Array() { return []; }
alert(Array(1, 2, 3)); // An empty alert box