linking a script .js

JavaScript
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Source

Also in JavaScript: