Multiple choice technology

Where is the correct place to insert a JavaScript?

  1. The <head> section

  2. The <body> section

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

  4. none

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

JavaScript can be placed in both and sections. The placement affects execution timing - scripts run before page load, scripts run after.