<script type="text/javascript" src="path-to-javascript-file.js"></script>
<script src="PathToYourFile.js"> </script>
<script src = "index.js"></script>
<script type="text/javascript" src=es4.js></script>
import('your-file-name.js')
//this only works for javascript files
//and with bugs or half bugs it won't work
<script src="name.js">
//put in your javascript here
</script>
check this link:
https://stackoverflow.com/questions/950087/how-do-i-include-a-javascript-file-in-another-javascript-file
it wil tell you it in all js variants (including jQuery and node.js)