Multiple choice general knowledge

Inside which HTML element do we put the JavaScript?

  1. <js>

  2. <script>

  3. <javascript>

  4. <scripting>

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

JavaScript code is placed inside the `` element in HTML. This element can appear in the head or body section. The other options (<js>, <javascript>, <scripting>) are not valid HTML elements and will not execute JavaScript code.