Looking to create a function that automatically replaces characters in a string with specified values. For example:
let word = 'apple';
replaceValues(word);
function replaceValues(value) {
//Need to replace the characters 'a', 'p', 'p' with the following values
let a = '2G8D';
let p = '7K5A';
/*
Code to accomplish this
*/
}