Importuj JS w HTML
<script type="text/javascript" src="yourfile.js"></script>
SteDeus
<script type="text/javascript" src="yourfile.js"></script>
<script type="text/javascript" src="path-to-javascript-file.js"></script>
import { hello } from './module.js';
let val = hello(); // val is "Hello";
document.writeln("<script type='text/javascript' src='Script1.js'></script>");
document.writeln("<script type='text/javascript' src='Script2.js'></script>");
// jQuery
$.getScript('/path/to/imported/script.js', function()
{
// script is now loaded and executed.
// put your dependent JS here.
});
<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="file2.js"></script>
<script type="text/javascript">
alertOne( );
</script>