javascript inner join arrays code example
Example 1: javascript join array
var array = ["Joe", "Kevin", "Peter"];
array.join(); // "Joe,Kevin,Peter"
array.join("-"); // "Joe-Kevin-Peter"
array.join(""); // "JoeKevinPeter"
array.join(". "); // "Joe. Kevin. Peter"
Example 2: js join two arrays
[1,2,3].concat([4,5,6])
// [1,2,3,4,5,6]