I hope this doesn’t break any rules
function fearNotLetter(str) {
let abc = "abcdefghijklmnopqrstuvwxyz";
let start = abc.indexOf(str[0]);
let j = 0;
let junk = [];
for (let i = start; i < str.length + start; i++){
if(abc[i] !== str[j]){
junk.push(str[j]);
}
j++;
}
return abc[abc.indexOf(junk[0])-1];
}
Challenge: Intermediate Algorithm Scripting - Missing letters
Link to the challenge: