Instead of adding JavaScript directly, we're connecting the HTML file to a JavaScript file with the instructions inside there.
To include a script, the opening script tag needs a src attribute.
src
Make sure to add src="script.js".
src="script.js"