3 ms·The short answer is: yes. If you do <script scr=...> And in the .js file: var x = 5. That x is global.by Mystery-Machine 3y agoThe short answer is: yes. If you do <script scr=...> And in the .js file: var x = 5. That x is global.