new to JS and I'm trying to append all the elements of an array to one string or element. I have tried a few different things but to no luck.

```
for (let i = 0; i < data.foodlist.length; i++) {
   const foodlist_obj = data.foodlist.item[i];
   console.log(foodlist_obj)
}

```

This returns a list like so:

Apple

Banana

Orange

Grapes

etc

But I would love to get the list to be like "Apple, Banana, Orange, Grapes, etc".
I have tried to use append and a few other options but cant seem to figure it out any help is appreciated