External JavaScript part 1
External JavaScript
Scripts can also be placed in external files.
External scripts are useful and practical when the same code is used in a number of different web pages.
JavaScript files have the file extension .js.
Below, we've created a new text file, and called it demo.js.
Having JS scripts in separate files makes your code much readable and clearer.
What extension is used for the JavaScript file?
.
Js
Comments
Post a Comment