Ad
  • Custom User Avatar

    You are given an integer as a parameter input, not a string. Strings have a 'replace' prototype but integers don't. Therefore when you try to access the 'replace' prototype, you recieve an error because it doesn't exist. Cast the integer to a string. Also, make sure you return an integer instead of a string as well.

  • Custom User Avatar

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