Can we use a different file name to use javascript in place of javascript.HTML while practicing?

can i make a different while practising html and javascript

1 Like


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