DOM
Also known as Document Object Model
The browser's object representation of a document, with nodes that scripts can inspect and change.
In the real world
document.querySelector('h1').textContent = 'Hello'; changes a heading in the document.
Also known as Document Object Model
The browser's object representation of a document, with nodes that scripts can inspect and change.
document.querySelector('h1').textContent = 'Hello'; changes a heading in the document.