1// there is not toCharArray() function in javascript ..
2// if you want to split string into char array .. then do this method..
3
4let name="hello";
5let charArray=name.split(''); // this split string into char ..
6console.log(charArray); // output: ['h','e','l','l','o']
7
8