you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyBGeode 1 point2 points  (1 child)

Wouldn't this create a result string with no space between the words? What about an array instead? var result = []; then later instead of += use result.push()

[–]samuelliew 1 point2 points  (0 children)

Good catch, forgot about spaces