tochararray in javascript

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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