JavaScript Array Split String to Array

Description

JavaScript Array Split String to Array


let myString = "CSS,HTML,Java,C++";
let myArray = myString.split(",");

let anotherString = myArray.join(",");
console.log( anotherString );    //from   ww  w  .ja  v a 2 s  .c o  m

console.log( myArray.toString() );



PreviousNext

Related