Frontend
What is DOM?
Document Object Model — a tree representation of an HTML document that JavaScript can manipulate.
Definition
The DOM (Document Object Model) is a programming interface for web documents. It represents the page as a tree of nodes where each HTML element, attribute, and text is a node. JavaScript can read and modify the DOM to change content, structure, and styles dynamically. The Virtual DOM (used by React) is an optimization that minimizes direct DOM manipulation by diffing a lightweight copy before applying changes.