There's an object holding items and prices from a grocery store:
let groceryStore = {
'Banana' : .25,
'Apple' : .30,
'Lettuce' : 1.20,
'Onion' : .15,
'Celery' : 1.15,
'Garlic' : 1.00,
'Tomato' : .50
}
You have an array of keys:
let groceryList = ['Tomato', 'Lettuce', 'Garlic', 'Onion']
I now need to find the total of all the values to the keys in my array(groceryList).