Skip to content

Instantly share code, notes, and snippets.

@jtlimson
Created January 27, 2021 06:17
Show Gist options
  • Save jtlimson/0c81090374cf9fcea354f60368550c97 to your computer and use it in GitHub Desktop.
Save jtlimson/0c81090374cf9fcea354f60368550c97 to your computer and use it in GitHub Desktop.
var paragraph = "the quick brown fox jumps over the lazy dog";
check_excluded_letters(paragraph);
function check_excluded_letters(paragraph)
{
var alphabet = 'abcdefghijklmnopqrstuvwxyz';
var alphabet_dictionary = alphabet.split("");
var check = paragraph.replace(/\s/g, '').split("");
var result=[];
alphabet_dictionary.forEach( element => {
if(!check.includes(element)) {
result.push(element);
}
});
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment