In the video, Dave put the console.log messages in the writes.js file. I had put them in the index.html file - I put the Start Program function after the opening body tag, and the End Program function just before the closing body tag. Here's the markdown:
My way worked, but is the writes.js placement the "best practice" way to do it?
In this example, you can really get away with either, but as you get into more sophisticated code that you need to debug and refactor, you are going to want it as organized as possible.
I would say any time you have an opportunity to keep code or a stylesheet in an external script that you include in your HTML page - the better. It allows for proper separation and cleaner code. To that degree, I would say absolutely it is best practice. It won't always be the case, but in most cases it will be.