Multiple choice

Which of the following statements are true about JavaScript? (1) It is used to add interactivity to the HTML page. (2) It executes inside the HTML page. (3) It is an interpreted language. (4) It is enclosed inside the and tags within the HTML page. (5) Java and JavaScript are almost the same.

  1. 1,2,3,5

  2. 1,2,4,5

  3. 2,3,4,5

  4. 1,2,3,4

  5. 1,3,4,5

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

Since, HTML files run as a static web page, also JavaScript is executed in HTML  and it is also an interpreted language. So, all the given statements are correct.