I have a script inserted on the head of the page like this
<head>
   ... load jQuery ....
   <script>var bbody = $('body');</script>
</head>
<body>
  ....
   <script>console.log(bbody);</script>
   <script>console.log($('body'));</script>
</body>
And always the result of the console.log in the first sentence it's undefined, but the second it's the correct object, So my question is: 
- ¿Always the code on the <script>is executed at the moment on the interpreter read the code inside in?
 
     
    