title: chrome and firefox javascript console - different return value
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4057440/is-chromes-javascript-console-lazy-about-evaluating-arrays">Is Chrome&#39;s JavaScript console lazy about evaluating arrays?</a>  </p>
  </blockquote>
  
  
  
  <p>For this annonymous function I have diferent output, and it depends if I am using Chrome developer console or Firefox  Firebug.Why is that ?</p>
  
  <pre><code>(function(){
  var t =["one","two"];
      console.log(t)
  
  function a(m){
      t[2]="three";
      console.log(t)
  };a(t)
  
  function b(n){
      t[3]="four";
      console.log(t)
  };b(t)
  }())
  ["one", "two", "three", "four"]
  ["one", "two", "three", "four"]
  ["one", "two", "three", "four"] // chrome output
  
  ["one", "two"]
  ["one", "two", "three"]
  ["one", "two", "three", "four"]// firebug output
  </code></pre>