…
please help me with this error: TypeError : Cannot read property 'length' of undefined
...function mutation(arr,char) {
for(var i=0; i< char.length; i++)
{
if(arr.indexOf(char[i] = -1))
{
return false;
}
}
return true;
}
mutation([“hello”, “hey”])