array to string comma separated javascript

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"];

var energy = fruits.join();
 
Source

Also in JavaScript: