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:
// ONLINE-RUNNER:browser;
var array = ['a', 'b', 'c'];
var text = array.join(', ');
console.log(text); // 'a, b, c'