Why would assigning a function to a var be different than simply defining it?
<p>So I'm just about to add a new function to our every growing list of global ones (sigh) and noticed the last user used a variable assignment over simple <code>function a(){}</code>.</p>

<pre><code>function aFunction(){
    return null;
}

var bFunction = function(){
    return null;
}
</code></pre>

<p>I created a <a href="http://jsperf.com/var-assignment-for-function">test</a> to see if it made a difference; It does, but a conflicting one. (chrome favours the simple function, while firefox the variable assignment).</p>

<p><strong>Firefox</strong>: Function create (90+% slower) / Create with variable assignment (fastest)</p>

<p><strong>Chrome</strong>: Function create (fastest) / Create with variable assignment (70+% slower)</p>

<p>I understand it's trivial but is there any reason for the discrepancy and is there a preferable way of doing this?</p>
