Not sure why this code doesn’t work for this challenge?
function mutation(arr) {
var str=[arr[0].toLowerCase(), arr[1].toLowerCase()];
for (var i = 0; i < str[1].length; i++) {
} if (str[0].indexOf(str[1][i]) < 0)
{
return false;
}
return true;
}
mutation(["hello", "hey"]);