This page demonstrates the use of JavaScript in a external file. The concept is similar to using an external file for a Cascading Style Sheet.
If you look at the source, you will not see any JavaScript code.
The external file hello.js