function LetterChanges(str) {
const alphabet = 'abcdefjhijklmnopqrstuvwxyz_'
const vowel = 'aeiou'
return str.toLowerCase().split('').map((c) => {
c = alphabet[alphabet.indexOf(c)+1];
if (vowel.includes(c)) c = c.toUpperCase();
if (c === "_") c = "A"
console.log(c);
return c;
}).join('');
}
function LetterChanges(str) {
str = str.split("").map((s)=> {
if(s.search(/[a-zA-Z]/) != -1){
var s =String.fromCharCode(97 + (s.charCodeAt()-96)%26);
if(["a", "e", "i", "o", "u"].includes(s))
s = s.toUpperCase();
}
return s;
});
return str.join('');
}