how could i create a function that takes in a function and a string and logs the result of calling the function on each letter in the string
function logger() {
}
function parse(letter) {
return letter.toUpperCase().concat('yo').split('').slice(1).join('');
}
logger(parse, 'hello world')
Essentially i want each character in the string "hello world" to be replaced with yo. My code can only be in the section below
function logger() { }