📅  最后修改于: 2022-03-11 15:03:05.794000             🧑  作者: Mango
// 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']