I`d like to know why it is not working x2

Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.


function mutation(arr) {
arr[0] = arr[0].toLowerCase();
arr[1] = arr[1].toLowerCase();

for(let  i = 0; i < arr[1].length; i++) {
  return arr[0].includes(arr[1][i]);
    

}


}   

console.log(mutation(["hello", "hey"]));
  **Información de tu navegador:**

El agente de usuario es: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Desafío: Mutaciones

Enlaza al desafío:

The keyword return will alway return out of whatever function it is in. So, you are really only testing the first character.

You can see this happen by putting in a log statement:

  for(let  i = 0; i < arr[1].length; i++) {
    console.log('testing', arr[1][i])
    return arr[0].includes(arr[1][i]);
  }

So, you need to rethink your logic? When do you know to return false? When do you know to return true?