O'Reilly logo
  • Nivan Morgan thinks this is interesting:

var a = []; // The variable a refers to an empty array. var b = a; // Now b refers to the same array. b[0] = 1; // Mutate the array referred to by variable b. a[0] ...

From

Cover of JavaScript: The Definitive Guide, 6th Edition

Note

To compare 2 objects ( functions )you will need to define the objects as variables then equate them