If you want to see the value of some pointer to a reference type (array, object), you cannot.
For example, in Perl, you have a scalar type that is a reference to something. When you print this scalar, you can get something like a string representation of a pointer to a value. There is no analogy to this kind of scalar in JavaScript.
You can only check if two links point to the same thing or not.
As in all languages ββwith GC, in JavaScript you cannot be sure that the same object will have the same memory pointer along the execution of the program (you can move it to the heap). As I mentioned, you do not have a pointer abstraction as a type of embedded language. Therefore, showing the current link may not be a good idea, because it can be dynamic (depending on the engine architecture and especially the GC).
Minko gechev
source share