Web technologies Questions | JavaScript Course Quiz 1 | Question 3
Is it necessary for the external script file to contain a <script> tag?
(A) Yes
(B) No
(C) Depends on the type of include
(D) None of the above
Answer: (B)
Explanation: No, it is not at all necessary to place a <script> tag inside the external javascript code, as your editor already knows it is a javascript code as you have saved the file with .js extension.
Quiz of this Question
Please comment below if you find anything wrong in the above post


