JavaScript program to replace all occurrences of a character in a string with another character:

Created with Sketch.