array of strings in javascript code example
Example 1: js array to string
var myArray = ['no','u'];
var myString = myArray.toString();
Example 2: how to make an array in javascript
var names = ["Sanjith", "Pranav", "Aadya", "Saharsh"]
Example 3: array to string javascript
<array>.join(<splitting character(s)>);
Example 4: return array javascript
function func() {
return [5, "string", {a: 7}];
}