Say I have 2 arrays:
var array1 = [1, 2, 3];
var array2 = [1, 2, 3, 4];
How do I compare them to single out the element ( in this case the number 4 )?
Something like:
if ( array1 == array2 ) {
//then do this
}else{
// find out the one that isn't the same in each and show it here
}