Tell us what’s happening:
On the console its returning false on this specific case just as I wanted, but its not getting accepted because its saying on those checkboxes in the bottom of the page that its not returning false.
I`m quite confused.
pls, can someont hep??
Your code so far
function mutation(arr) {
var aux = "";
for(var i =0; i < arr[0].length; i++)
hash[(arr[0][i]).toLowerCase()] = 1;
for(var j=0; j < arr[1].length; j++)
if(!hash.hasOwnProperty((arr[1][j]).toLowerCase()))
return false;
return true;
}
var hash = {};
mutation(["vodo", "no"]);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
.
Link to the challenge: