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