**Tell us what’s happening:**

Hey guys. My function doesn’t work. Is it because in if-statement i wrote return ? And after first cicle it exits and returns value for first element? How can i check all elements ?

**Your code so far**

```
function mutation(arr) {
let x = arr[1].toLowerCase().split("");
let y = arr[0].toLowerCase();
for ( let i = 0; i < x.length; i++ ) {
if ( y.indexOf(x[i]) !== -1 ) {
return true;
}
return false;
}
}
mutation(["hello", "fgg"]);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/mutations/