title: Google Chrome issue while accessing variable of one javascript <script> tag in other <script> tag
body: <p>I want to use a JavaScript variable named author from one <code>&lt;script&gt;</code> tag into other <code>&lt;script&gt;</code> tag on same page. I know it is a duplicate question but please my issue is a bit different.</p>
  
  <p>I have declared that variable globally and used it in other <code>&lt;script&gt;</code> tag. It is working fine in IE, Edge, Firefox but in Chrome it doesn't. It looks like chrome don't even know if that variable exists. Here is the simple code:</p>
  
  <pre><code>&lt;script&gt;var author = "zubair";&lt;/script&gt;
  &lt;script src="external.js"&gt;&lt;/script&gt;
  </code></pre>