Computer Science, asked by mvncnbk, 11 months ago

What are the advantages of external JavaScript?​

Answers

Answered by Anonymous
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 Anonymous
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