customers=[
{
name:"John",
age:30,
city:"New York"
},
{
name:"Dave",
age:40,
city:"Los Angeles"
},
{
name:"Mary",
age:50,
city:"Miami"
},
{
name:"Anna",
age:30,
city:"Washington"
}
];
1.Collect all the names in an array and print them to the screen
2.Calculate the sum of the ages of the customers
3.Print the ages and cities of customers starting with the letter A
5.Write a function that creates a new customer and adds it to the list of customers when the name, age, city parameters are entered into that function.