Table of Contents
- Create a text file under folder scripts and name it js.
- In your html file enter the given element, under <body > </body> tag.
Note: Write the above statement, just above </body> tag. It is done because, we will let the HTML document to load first and then load the script data, this will load the UI faster.
Now, whatever you write in index.js will be reflected into index.html. We will mainly write our code in console of browser (press F12 in Chrome to open its console), this will help us to validate our code there itself.