+ 5
Which is more reliable
Internal .js file or External .js file
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.