Contact: aviboots(AT)netvision.net.il
39,914 questions
51,847 answers
573 users
const str = "abcdefghij"; let charArray = str.split(""); console.log(charArray); /* run: [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' ] */
const str = "abcdefghij"; let charArray = [...str]; console.log(charArray); /* run: [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' ] */