Consider a string:
12345678
The desired output is:
1 2 3 4 5 6 7 8
How can this be split using JavaScript?
'12345678'.split('').join(' ');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With