Ad
  • Default User Avatar

    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...

  • Default User Avatar

    Thank you for your respsonse.
    And yes, I will keep it in mind for all future posts.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Note: The function accepts an integer and returns an integer

    And please mark your post as having spoiler content next time.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution