Ad
  • Custom User Avatar

    Apologies, I thought that by marking my initial feedback as a spoiler, it would be inherited by all further comments.
    Yeah, I did end up using that to solve the Kata.
    I thought you had seen my solution and were hinting that there was a different one I could/should have used.

  • Custom User Avatar

    I know you asked this question a long time ago, but I think it is because trim() removes leading and trailing white spaces. The Kata asks you to remove all spaces, including the ones in between strings of characters.

  • Custom User Avatar

    Ok so what is the similar function that does the same job?

    I checked https://node.green/#ES2021-features, which shows that replaceAll is not supported on v14.x, but it does not present an alternative.

  • Custom User Avatar

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