Question: java script I have array of food order var foodOrder ={ name: kim, studentId: 5877, foodChoice: [{name : cheese burger, authenticity: american},{name : pizza, authenticity:

java script

I have array of food order

var foodOrder ={ name: kim, studentId: 5877, foodChoice: [{name : cheese burger, authenticity: american},{name : pizza, authenticity: italian}, {name : pasta, authenticity: italian}, {name : sushi, authenticity: japanese}]}

i would like to map the array of foodChoice that belongs to foodOrder and concatenating name and authenticity for example pizza italian

function getFood(){

var mappedFood=foodOrder.foodChoice.map(mappingFood)

function mappingFood(){

var newFoodName =.......

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!