where do u link javascript in html code example
Example 1: call js script in html
<script src="file1.js" type="text/javascript"></script>
<script src="file2.js" type="text/javascript"></script>
Example 2: add javascript
function add(param1, param2) {
return param1 + param2
}