Javascript: Replace all occurences in a string
Most of the people don't know how to replace all occurences in a string. We know the ordinary expression in javascript to replace matching string. that is string.replace()
here is an example of this.
But output of this will be like this:
|