get string as array javascript code example
Example 1: js string to array
var myString = 'no,u';
var MyArray = myString.split(',');//splits the text up in chunks
Example 2: javascript string to array
const str = 'Hello!';
const arr = Array.from(str);
//[ 'H', 'e', 'l', 'l', 'o', '!' ]
Example 3: convert string to array javascript
let myArray = str.split(" ");
Example 4: javascript to array
Array.from("Hello"); // ["H", "e", "l", "l", "o"]