Javascript method: Replace all instances of a character in a string

Original string:
Replace this character:
With this character:
Updated string:



Javascript

HTML