Skip to content

Instantly share code, notes, and snippets.

@Narshe1412
Last active December 16, 2015 11:53
Show Gist options
  • Save Narshe1412/5c0f8b1a99d8adc3df4b to your computer and use it in GitHub Desktop.
Save Narshe1412/5c0f8b1a99d8adc3df4b to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/narshe1412 's solution for Bonfire: Missing Letters
function fearNotLetter(str) {
for (var i = 0, char = str.charCodeAt(0); i < str.length; i++, char++) {
if (str.charCodeAt(i) !== char) {
return String.fromCharCode(char);
}
}
}
fearNotLetter("abce");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment