how toconvert a string to first element of an array in javascript code example
Example 1: convert string to array javascript
let myArray = str.split(" ");
Example 2: how to change string to array in javascript
a=anyElement.all
// console.log(a)
Array.from(a).forEach(function (element){
console.log(element)
})