Which is more reliable | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Which is more reliable

Internal .js file or External .js file

14th May 2018, 11:44 AM
Sanjeet
Sanjeet - avatar
1 Answer
+ 2
External. The reason behind this is because if you make your full webpage let’s say in just 2 page. If something were to happen to your file, since it is the only file that contains all the information about the website. Your file would be lost and all your progress too. On the other hand if you distribute your work among many files, if something happens to any of these files, you only lose a chunk of information. Not all of it! Also, you can use a .js or .css for multiple html files. Meaning you don’t have to re-write the same code over and over.
14th May 2018, 11:52 AM
JackTheRapper
JackTheRapper - avatar