How do you convert a string to a character array in JavaScript?

I’m thinking getting a string like "Hello world!" to the array
['H','e','l','l','o',' ','w','o','r','l','d','!']

14 Answers
14

Leave a Reply

Your email address will not be published. Required fields are marked *