You are viewing a single comment's thread. Return to all comments →
function pangrams(s) { let loverCaseString = s.toLowerCase(); const regex = /[a-zA-Z]/g; let pangrams = loverCaseString.match(regex); let uniqueChars = [... new Set(pangrams)]; return uniqueChars.length === 26 ? 'pangram' : 'not pangram'; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
function pangrams(s) { let loverCaseString = s.toLowerCase(); const regex = /[a-zA-Z]/g; let pangrams = loverCaseString.match(regex); let uniqueChars = [... new Set(pangrams)]; return uniqueChars.length === 26 ? 'pangram' : 'not pangram'; }