JS

Introduction to Javascript - Purpose of the Docume...

18.

What is the purpose of the Document Object Model (DOM) in JavaScript?

It is used to store and execute JavaScript code.

It is responsible for rendering web pages in web browsers.

It provides a way to interact with and manipulate the elements of an HTML or XML document.

It is used to create dynamic server-side applications.