I have the same problem but here I don’t see any useful comment to know why? my code is This way:
function mutation(arr) {
var firstString= arr[0].toLowerCase();
var secondString= arr[1].toLowerCase();
for (i=0; i<secondString.length; i++){
if(firstString.indexOf(secondString[i]) === -1){
return false;
}else{
return true;
}
}
}
mutation(["hello", "hey"]);