title: Can HTML <script> tags connect from different points?
body: <p>As i was making my text rpg, i was wondering if i could make my javascript in the  tags but, in a weird order, like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
    &lt;script&gt;
      ex();  // Call the function here
    &lt;/script&gt;
  
    &lt;script&gt;
      function ex() {
        alert('test'); // Make the function here
      };
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>