how to remove prefix and suffix from string in javascript?
Hi Friends 👋, Welcome To Infinitbility! ❤️ To remove prefix and suffix from string in javascript, use replace() method it will return a string without your prefix and suffix but it will work only when you know the prefix and suffix, suppose if you don’t know the coming prefix and suffix then you have to put some separator at the time of creating your string like “prefix###yourstring###suffix”. Let’s see a short example of javascript removing prefixes and suffixes from string in javascript....