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

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2