what is array of objects in 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: how to create an array in javascript
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
// 2