I want to create a JavasScript array in following format:
var datas = [
{ name: "Peter Pan", location: "[email protected]" },
{ name: "Molly", location: "[email protected]" },
{ name: "Forneria Marconi", location: "[email protected]" },
{ name: "Master <em>Sync</em>", location: "[email protected]" }
];
As I want to create it dynamically, It would be great if I can create an array like that.