Quiz Question 1 of 6
When including a JavaScript file using the src
attribute within a <script>
tag, which of the following scenarios will lead to an error in execution?
Choose the correct answer below:
-
A
The JavaScript file is located in a different domain, and the correct absolute URL is provided in the
src
attribute. -
B
The JavaScript file is located in a different directory, but the correct path is specified in the
src
attribute. -
C
The JavaScript file is in a subdirectory, but the path is incorrectly specified in the
src
attribute. -
D
The JavaScript file is located in the same directory, but no
src
attribute is provided in the<script>
tag.