What are the advantages of external JavaScript?
Answers
Answered by
0
Answer:
External scripts are useful for code reuse. When the same code is used in multiple sites or html pages, it makes sense to have the javaScript code separated into its own js file. The advantages of using an externally saving script is that separating HTML and JavaScript code will help manage the code base better.
_____✔
Answered by
3
Answer:
Placing scripts in external files has some advantages:
It separates HTML and code
It makes HTML and JavaScript easier to read and maintain
Cached JavaScript files can speed up page loads
To add several script files to one page - use several script tags:
#followme
#markasbrainlist
_________________✌❣
Similar questions