0

What is external javascript

11th Apr 2018, 3:04 AM
Soumya Ranjan Rout
Soumya Ranjan Rout - avatar
4 Answers
+ 5
external JavaScript is sometimes used to refer to js that isn't written within the html code(in a separate file) or js included in the code through its src link
11th Apr 2018, 3:34 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
internal: <html> <head> <script> // js code here </script> </head> external <html> <head> <script src="/path/to/javascript.js"></script> </head>
11th Apr 2018, 3:49 AM
Adam
Adam - avatar
+ 1
o thnx btw which one mostly use
11th Apr 2018, 4:33 AM
Soumya Ranjan Rout
Soumya Ranjan Rout - avatar
0
Soumya Ranjan Rout Both. :) If you need a quick little script there's no point making it a separate file. If you've got a bunch of javascript... best to make it external and not clog up your html.
11th Apr 2018, 8:02 AM
Adam
Adam - avatar