Hi,
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])) {
continue;
}
erg = false;
}
return erg;
}
mutation(["hello", "hey"]);
Thx for the help.