📜  如何连接数组js中的所有字符串 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:25.784000             🧑  作者: Mango

代码示例2
// if you want to concat all the strings in an array in js:
const myArr= ["a","b","c","d","e","f","g"];
let concatArr= myArr.join(""); //the default separator is the comma (,)
console.log(concatArr);
//abcdefg