When the Web HTML interpreter read the code under the script tag? : <p>I have a script inserted on the head of the page like this</p>

<pre><code>&lt;head&gt;
   ... load jQuery ....
   &lt;script&gt;var bbody = $('body');&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
  ....

   &lt;script&gt;console.log(bbody);&lt;/script&gt;
   &lt;script&gt;console.log($('body'));&lt;/script&gt;
&lt;/body&gt;
</code></pre>

<p>And always the result of the console.log in the first sentence it's <code>undefined</code>, but the second it's the correct object, So my question is: </p>

<ol>
<li>¿Always the code on the <code>&lt;script&gt;</code> is executed at the moment on the interpreter read the code inside in?</li>
</ol>
