<script type="text/javascript" src="yourfile.js"></script>
<script src="index.js"></script>
<script src="index.js"> </script>
<script src="PathToYourFile.js"> </script>
<script src = "index.js"></script>
<script src="Your-JavaScript-File.js"></script> <!--If JS file is in same folder with HTML file-->
<script src="index.js"> </script>
<!-- index.html -->
<html>
<head>
<title>My Page</title>
<script src="my-script.js"></script>
</head>
<body>
<div id="user-greeting">Welcome back, user</div>
</body>
</html>
<script type="text/javascript" src="yourFile.js"> </script>
<script src="your js file"></script>
<script src="name.js">
//put in your javascript here
</script>