how to add the javascript file in html code example Example: import js in html <script type="text/javascript" src="yourfile.js"></script>