Return true if none of the letters in the blacklist are present in the phrase. If at least one letter from blacklist is present in the phrase return false;
Comparison should be case insensitive. Meaning 'A' == 'a'.
Не могу понять что не так , надеюсь на вашу помощь❤
function hasNoneLetters(blacklist, phrase) {
// write code here
let p = phrase.toLowerCase();
let b = blacklist.toLowerCase();
let count = 0;
for(let i = 0; i < b.length; i++){
if(p.indexOf(b[i]) != -1){
count += 1;
}
}
if(count === b.length){
return true;
}
return false;
}