async function myfunc(fruits) {
for (i = 0; i < 5; i++) {
fruits.forEach(fruitId => {
colors = await dbHelper.getColor(fruitId);
colors.forEach(color => {
taste = await dbHelper.gettaste(color);
});
});
}
}
How do we get this to work,with multiple for loops.The dbhelper functions are fetching some data from the database.