can i make a different while practising html and javascript
To use javascript, you need to use ‘.js’ extension. Please keep any filename, and use the extension.
Sample - main.js
You also need to call the javascript file in HTML to use it.
Using the < script> tag, you can do the same.
1 Like