convert string to char array js code example
Example 1: word to char array javascript
var word = userInput[0];
var l = word.split("");
console.log(l);
//input abb
//op ['a','b','b']
Example 2: convert string to array javascript
let myArray = str.split(" ");