Vidyalelo
JavaScript · Q54

Caching And Debugging

Programming · JavaScript · question 54

Q54

Which of the following attribute takes the source of the PHP file?

A.
img
B.
src
Answer
C.
source
D.
none of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The syntax to referencing a PHP file using external JavaScript is consistent enough with what we already know:
<script type="text/javascript" src="myscript.php">