How to compare the boolean type in the javascript?
Hello.
I want to know how to compare the boolean tpye array in the javascript.
For example,
var arr1 = [1, 1, 0, 0, 1, 1, 1, 1];
var arr2 = [1, 1, 1, 0, 0, 0, 1, 1];
so, I want to compare arr1 and arr2. then, arr3 is [1, 1, 0, 0, 0, 0, 1, 1].
The true value in the arr1 and in the arr2 is arr3's true value.
How to construct the function in the javascript?