Bug in mutations challenge?


when I try to submit my solution for the mutations challenge, all the tests keep their red cross flag. I custom tested each one in codepen, and my solution was always correct. Have I maybe copied some incorrect flag from over there?

Here is my code:

function mutation(arr) {
  var searchValue = arr[1].toLowerCase().split("");
  var searchTerm = arr[0].toLowerCase();
  var erg = true;
  for (var i = 0; i < searchValue.length; i++) {
    if(searchTerm.includes(searchValue[i])) {
    erg = false;
  return erg;

mutation(["hello", "hey"]);

Thx for the help.

Your solution looks fine to me. Also, when I run the tests with your solution, I get all green. Try closing your browser and coming back in again to submit to the tests.

1 Like