How do I return undefined?
**Your code so far**
function fearNotLetter(string) {
for (var i = 0; i < string.length; i++) {
if (string.charCodeAt(i + 1) - string.charCodeAt(i) !== 1) {
return String.fromCharCode(string.charCodeAt(i) + 1);
}
}
return undefined;
}
let ans =fearNotLetter("abcdefghijklmnopqrstuvwxyz");
console.log(ans)
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Challenge: Missing letters
Link to the challenge: