Roy wanted to increase his typing speed for programming contests. His friend suggested that he type the sentence "The quick brown fox jumps over the lazy dog" repeatedly. This sentence is known as a pangram because it contains every letter of the alphabet.
After typing the sentence several times, Roy became bored with it so he started to look for other pangrams.
Given a sentence, determine whether it is a pangram. Ignore case.
It should return the string pangram if the input string is a pangram. Otherwise, it should return not pangram.
SAMPLE INPUTS
We promptly judged antique ivory buckles for the next prize
// pangram
We promptly judged antique ivory buckles for the prize
// not pangram (missing letter x)
CODE
function pangrams(s) {
const exp = /[a-z]/gi;
if (s.includes(exp)) {
return 'pangram';
} else {
return 'not pangram';
}
}
TypeError: First argument to String.prototype.includes must not be a regular expression
QUESTION
If I'm solving it correctly otherwise, how can I work around this while still being able to use the regular expression?