EN
JavaScript - join array of strings by comma and space
0 points
In this article, we would like to show you how to join an array of strings by comma and space in JavaScript.
Quick solution:
xxxxxxxxxx
1
var array = ['a', 'b', 'c'];
2
3
var text = array.join(', ');
4
5
console.log(text); // 'a, b, c'