const checkSpam = (text, spamKeywords) => {
const a = text.toLowerCase();
for (let i = 0; i < spamKeywords.length; i++)
{
if (a.includes(spamKeywords[i].toLowerCase()))
{
return true
}
return false
}
}
Hi Team,
I am getting the desired output of false and true but still i get two wrong under the test engine check. Can someone please suggest what i am doing wrong here?