hey, guys, I am trying to do a code wars challenge to strengthen my skills, and I could use some help. I know I am probably not getting it because I don’t know enough about JavaScript yet but I thought that I was close a few times. Here are the instructions: A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence
“The quick brown fox jumps over the lazy dog”
is a pangram, because it uses the letters A-Z at least once (case is irrelevant).
Given a string, detect whether or not it is a pangram. Return True if it is, False if not.
Ignore numbers and punctuation.
Here is my code every time I try to fix it I either only true in the terminal or only false:
let isPangram = 'The quick brown fox jumps over the lazy dog' ;
if(isPangram = 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'){
console.log('This is pangram.');
return true;
}
else (isPangram != 26);{
console.log('This is not a pangram.');
return false;
}