Multiple choice technology web technology

Where is the correct place to insert a JavaScript?

  1. Both the <head> section and the <body> section are correct

  2. The <body> section

  3. The <head> section

  4. The <JavaScript> section

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

JavaScript can be inserted in both the section and the section of an HTML document. The section doesn't exist in HTML, and while both head and body work, the question asks for the correct place implying either is acceptable.