let check= (arr1, arr2)=> {
// console.log(arr1);
debugger;
found= 0;
for (let i= 0; i<arr1.length; i++){
for(let j= 0; j<arr2.length; j++){
// console.log(`${arr1[i]} ${arr2[j]}`);
if (arr1[i] === arr2[j])
debugger;
{
found+= 1
if (found == 2)
return true;
else
break;
}
}
}
return false;
}
anyways…
thats such a nonsense.
one time it worked as intended
and now… not… never… i dont understand why.
iam using firefox, the newest.
i also have this error:
Error: NetworkError when attempting to fetch resource.
moz-extension://f454f459-eac0-4304-8c8a-c54c5321e64b/content/js/purify.min.js
purify.min.js.map
not sure if thats related.
also for some reason live server doesn’t always loads the code to the browser.
LORD!
found the solution : D
its the second debugger word, its outside the scope, making the condition scope not work.