How to use external JavaScript file?



How to use external JavaScript file?..

Answer / Diwakar Kumar Tiwary

To use an external JavaScript file, you can link it in your HTML file using the script tag: <script src='filename.js'></script>.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Can array in javascript be extended?

1 Answers  


What is lazy loading java?

1 Answers  


What boolean operators does JavaScript support?

5 Answers   Aptech, HCL, Satyam,


What is enum with example?

1 Answers  


What is the difference between window and document in Javascript?

1 Answers  


What are limitations in javascript?

1 Answers  


What are the benefits of learning javascript?

1 Answers  


What is a reverse string?

1 Answers  


How to create the namespace in javascript?

1 Answers  


How do you add an element at the beginning of an array?

1 Answers  


How will you get the checkbox status whether it is checked or not?

1 Answers  


What boolean operators can be used in JavaScript?

1 Answers  


Categories