Answers for "Which of the following is the proper way to link to an external JavaScript file?"

10

linking a script .js

<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on March-08-2020
1

how to include external javascript in html

<script src="script.js">
Posted by: Guest on September-18-2020
0

pointing to an external javascript file in html

<script src="my_javascript_file.js"></script> 
      <!-- Both work -->
<script src="../src/js/[file_name].js"></script>
Posted by: Guest on September-01-2021

Code answers related to "Which of the following is the proper way to link to an external JavaScript file?"

Browse Popular Code Answers by Language