I know that using a function or a variable by file1 from file2 can't work:
<head>
<script src="file1.js"></script>
<script src="file2.js"></script>
</head>
Because file2 is 1 line lower than file2, is there something that can make it possible? I don't want to use all of js script in one file or in html file because it would be a mess is there something i can do so it will work
I tried swapping file1 and file2 but it still gave me errors about functions and values being null and i don't know what to do