javascript convert string in array code example
Example 1: convert string to array javascript
let myArray = str.split(" ");
Example 2: javascript split
var arr = ['hey', 'nay', 'wey'];
var let = arr.split(' ');
console.log(let);
let myArray = str.split(" ");
var arr = ['hey', 'nay', 'wey'];
var let = arr.split(' ');
console.log(let);