📜  javascript代码示例中的tochararray

📅  最后修改于: 2022-03-11 15:03:05.794000             🧑  作者: Mango

代码示例1
// 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']