const arr = [ {name: "john", chosenItem: ""}, {name: "jimmy", chosenItem: ""}];
arr.forEach(element => {
element.chosenItem = choose();
})
function choose() {
if("CHOOSE A")
return "A"
else("CHOOSE B")
return "B"
}
every loop it ask for a decision then proceeds to the other one after choosing.