0
Comparing Array
why is this bringing FALSE even though they have the same value? let arr0 = [1,2,3,4,5]; let arr1 = [1,2,3,4,5]; let booleany = arr0 === arr1; console.log(booleany);
3 Respostas
+ 4
You are using strictly equal operator(===) here. It means that both arr0 and arr1 should point at same objects, which they are not hence FALSE.
+ 2
Arsenic i tried using (==) also, but its still printing false
+ 2
Rithea Sreng It's really complicated. Thank you.