+ 1
what is the function of external file
3 Answers
+ 4
Putting your js in a separate file is usually better for maintainability, and allows your browser to cache the file (useful if you use the same script in several pages).
0
you can easily maintenance your code if you put in external file. and I think it's can speeding up your code.
0
It's separate your code, so easy to maintain