Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started