Created
January 27, 2021 06:17
-
-
Save jtlimson/0c81090374cf9fcea354f60368550c97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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