Inserting spaces between numbers in a string
javascript, jquery
Solution
split to what? if you want to split each character to array element, use javascript split() method :
var str = "12345678";
var arr = str.split("");
Problem
Consider a string: ``` 12345678 ``` The desired output is: ``` 1 2 3 4 5 6 7 8 ``` How can this be split using JavaScript?