make string into a array in javascript code example
Example 1: string to array javascript
const str = 'Hello!';
console.log(Array.from(str)); // ["H", "e", "l", "l", "o", "!"]
Example 2: convert a string to array in javascript
let price = "shola";
console.log(Object.values(price));