+ 2
How to make a string an array and vice versa
How would you make a string an array and vice versa in Javascript?
2 Respuestas
+ 3
For string to array:
Use stringVar.split(delimiter)
The delimiter is what you’re splitting the string by. For an array of every character, do this: stringVar.split(“”);
+ 3
To make an array into a string, use arrayVar.join()