Just add the script tags in the master page or content page and the javascripts can be included in them.
Eg:
<script>
</script>
<form>
<!--
</form>
If you want to add a JavaScript file to them, you can use
src attribute in the script tag.
Lastly, please pick any basic book, read first and then start coding!