PrepAway - Latest Free Exam Questions & Answers

Which statement shows the correct syntax to do this?

Jane has created a file with commonly used JavaScript functions and saved it as "allFunctions.js" in the application’s root directory. She wants to load this file into a Web page to access its functions. Which statement shows the correct syntax to do this?

PrepAway - Latest Free Exam Questions & Answers

A.
<script link="text/javascript" href="/allFunctions.js"> </script>

B.
<script link="javascript/external" href="/allFunctions.js"> </script>

C.
<script type="text/javascript" src="/allFunctions.js"> </script>

D.
<script type="text/@linked" javaScript="allFunctions.js"> </script>


Leave a Reply