Answers for "how to convert an array to a string in javascript"

5

javascript convert in a string the items of an array

const arr = [1, 2, 'a', '1a'];
const str = arr.toString();
console.log(str); //> "1,2,a,1a"
Posted by: Guest on March-30-2020

Code answers related to "how to convert an array to a string in javascript"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language