title: Javascript Function-Pointer Assignment
body: <p>Consider this javascript code:</p>
  
  <pre><code>var bar = function () { alert("A"); }
  var foo = bar;
  bar = function () { alert("B"); };
  foo();
  </code></pre>
  
  <p>When running this code I get "A". Is this behavior a part of javascript specification and can I rely on it?</p>