I have a string with 4 values called alpha1 "abcd" and another string with 4 values called alpha2 "abce". I want to create a function that translates a given alpha1 string into alpha2 such that: function "abcd" returns "abce" function "dddd" returns "eeee" function "bbdd" returns "bbee" Here's my attempt:
function Replace() {
Replace.replace("d", "e");
}