join list with commas javascript
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.join() // Returns "Banana,Orange,Apple,Mango"
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.join(", "); // Returns "Banana, Orange, Apple, Mango"