add js file to htmk from js code example
Example 1: include js in html
<html>
<head>
</head>
<body>
<script type="text/javascript" src=es4.js></script>
</body>
</html>
Example 2: how to connect a javascript file to html
<script src="name.js">
//put in your javascript here
</script>