Multiple choice

Where is the correct place to insert a JavaScript?

  1. The <body> section

  2. The <head> section

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

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

JavaScript can be placed in either the or the section of an HTML document, depending on when the script needs to execute.