Javascript Setup
Always place the scripts at the bottom of the HTML
How to link Javascript file to HTML
You can link a Javascript file to the HTML document in two easy steps:
Step 1: Create a file that ends with a .js extension
Currently, the browser-supported file extension for the Javascript files is .js.
So, we have to create a file that ends with .js extension.
For example: