When working with C++, I usually print the address of objects and compare them to see if they are the same. How can I achieve something similar in JavaScript? Since I don't have direct references to the objects at the same time, I often resort to using console.log which provides me with a long human-readable output that is difficult to compare.