Joining Array Elements into a String in Javascript


Use join to combine array elements into a string.

Source Code

let fruitsArray = ['apple', 'banana', 'cherry'];
console.log(fruitsArray.join(', '));
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments