tochararray js code example
Example: tochararray in javascript
// there is not toCharArray() function in javascript ..
// if you want to split string into char array .. then do this method..
let name="hello";
let charArray=name.split(''); // this split string into char ..
console.log(charArray); // output: ['h','e','l','l','o']