tutorial 3: creating and attaching an external code file

watch it on YouTube

Notes

Definitions

external code files
stand-alone files that can be linked to HTML pages

Example

A JavaScript code file with the name "maincode.js" that's located in a js sub- folder would be connected to this page with a line of code like this:'

<script src="js/maincode.js"></script>