What's the advantages of external JS over the one included in HTML file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's the advantages of external JS over the one included in HTML file?

9th Apr 2016, 4:14 PM
Reinhert Onduru
Reinhert Onduru - avatar
3 Answers
+ 1
A script written in an external document.js can be called and used in many html pages, without copying it in every single html files.
25th Apr 2016, 4:01 AM
Guillaume Sancey
Guillaume Sancey - avatar
+ 1
It's simply that it separates the code and the actual text. Makes it better to understand. And most important- When we are using the same code again and again, it is better to place the code externally.
28th Apr 2016, 11:37 AM
Abhinav AGGARWAL
0
external js makes code easy to read
11th Jun 2016, 12:56 AM
Alphonse Okereke Ogobikau