tochararray in javascript

Solutions on MaxInterview for tochararray in javascript by the best coders in the world

showing results for - "tochararray in javascript"
Bilal
27 Jan 2018
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