array objects javascript code example
Example 1: array of objects javascript
var widgetTemplats = [
{
name: 'compass',
LocX: 35,
LocY: 312
},
{
name: 'another',
LocX: 52,
LocY: 32
}
]
Example 2: what are the two ways to create an array in javascript examples?
let scores = Array(10);