hello please can anyone tell me why this doesnt work to solve mutation challenge in basic algorithms ( js curriculim)
function mutation(arr) {
var arr1=arr[0].toLowerCase();
var arr2=arr[1].toLowerCase();
var hamza=/arr2/;
if(hamza.test(arr1)){
return true
}
return false;
}
mutation(["hello", "hey"]);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36
.
Challenge: Mutations
Link to the challenge: