split string into chars javascript code example
Example 1: convert string to array javascript
let myArray = str.split(" ");
Example 2: javascript separate string by char
var Str = "Hello There!"
var SplitOn = " "
var Results = Str.split(SplitOn);
//Results[0] will be 'Hello' and Results[1] will be 'There!'