Multiple choice general knowledge

External scripts need to be enclosed in comments so that browsers that do not understand Javascript will not display the code on the page

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

External scripts are referenced via the src attribute in tags and are never displayed on the page. Browsers that don't understand JavaScript simply ignore the entire <script> element. Comment hiding was only needed for inline scripts to prevent code from displaying as text content, not for external script files.