If you split the string by " " it will return an array of words. If you want to add them to another array you can then use whatever method you want to join the two. I'd suggest the spread operator. I'm assuming this is javascript...
Thank you for your respsonse. And yes, I will keep it in mind for all future posts.
This comment is hidden because it contains spoiler information about the solution
Note: The function accepts an integer and returns an integer
And please mark your post as having spoiler content next time.
Loading collection data...
If you split the string by " " it will return an array of words. If you want to add them to another array you can then use whatever method you want to join the two. I'd suggest the spread operator. I'm assuming this is javascript...
Thank you for your respsonse.
And yes, I will keep it in mind for all future posts.
This comment is hidden because it contains spoiler information about the solution
And please mark your post as having spoiler content next time.
This comment is hidden because it contains spoiler information about the solution