Implement the Mutations Algorithm - Implement the Mutations Algorithm

Tell us what’s happening:

I’m getting back the right answer for all of the words i put in the console. But the tests are not passing. What is going on?

Your code so far

function mutations(arr){
  const fstStr = arr[0].toLowerCase();
  const secStr = arr[1].toLowerCase();

  for(let word of secStr){
    if(!fstStr.includes(word)){
      return false;
    }
  }
  return true;
}

console.log(mutations(["hello", "hey"]))
console.log(mutations(["zyxwvutsrqponmlkjihgfedcba", "qrstu"]))
console.log(mutations(["Mary", "Aarmy"]))
console.log(mutations(["hello", "neo"]))

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Implement the Mutations Algorithm - Implement the Mutations Algorithm

Please double-check the name of your function.