how to put space in between characters javascript 1

how to put space in between characters javascript

"hello".split('').join(' '); // "h e l l o"

Here is what the above code is Doing:
1. The string “hello” is split into an array of characters.
2. The array of characters is joined back together with a space in between each character.

Similar Posts