+ 4
How to convert string to array or list in javascript??
convert string to array or list.
4 Answers
+ 5
Do you mean take every character of a string and put it into an array? string.split(“”); should work just fine
+ 3
I will try to use that it will help me in my next code.thank you.
+ 2
mystring.split(“ ”)
thats if the things in a string are separated by white space
mystring.split(“,”) if separated by a comma
+ 1
you can to convert string to int, float, and even object and some more times. But you can do an Array from Variable