title: print the handler/reference of an array (or object) in Javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/639514/how-can-i-get-the-memory-address-of-a-javascript-variable">How can I get the memory address of a JavaScript variable?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way, in javascript, to print the reference of an array?</p>
  
  <p>What I want to do is to check if two arrays have the same reference, and it can be done like this post suggests: <a href="https://stackoverflow.com/questions/13685079/how-to-check-if-two-vars-have-the-same-reference">How to check if two vars have the same reference?</a></p>
  
  <p>But is it possible to print the reference, if for instance I'm working with an array?</p>
  
  <p>Example</p>
  
  <pre><code>var Array1=["hi"];
  var Array2=["hello"];
  
  var thesame = Array1==Array2;
  </code></pre>
  
  <p>the same value is <code>false</code>.</p>
  
  <p>But can I print he Array1 reference with somethink like     <code>window.alert(@Array1);</code>  in javascript?</p>
  
  <p><strong>--UPDATE --</strong></p>
  
  <p>What I exactly want is the actual address space being referenced.</p>