What are the advantages of using external javascript?



What are the advantages of using external javascript?..

Answer / Jagpreet Singh

"Using external JavaScript files offers several benefits:
1. Modularity: External scripts can be organized into separate files, making code more manageable and easier to maintain.
2. Performance: Browsers can cache external scripts, reducing load times for subsequent page visits.
3. Separation of Concerns (SoC): By separating JavaScript from HTML, developers can better adhere to the principle of SoC, improving code readability and maintainability."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How dhtml is used in javascript?

1 Answers  


What is the use of a typedarray object in javascript?

1 Answers  


Explain javascript debounce function?

1 Answers  


What is the difference between the operators '==' and '==='?

1 Answers  


What's the difference methods get and post in html forms?

1 Answers  


How to read a cookie using javascript?

1 Answers  


What is this? Var myarray = [[[]]];

1 Answers  


How many types of data types are there?

1 Answers  


What is a prompt box in javascript?

1 Answers  


hello sir my name is naga sekhar i completed my b-tech in 2011 with 61% in IT streme.I completed my core and advanced java coure before 8months back.Still i did not get the job.i tried so many times.and i went to some interviews but no use.now i want to get the job in software sector

1 Answers  


What is node value?

1 Answers  


How to add a new property in existing function javascript?

1 Answers  


Categories