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

CodeProject Demo: CodeProject Link

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



Javascript

HTML