Intro to the DOM

DOM stands for Document Object Model

It’s a JS representation of everything on a webpage

HTML & CSS define the elements and styles. The DOM lets us access and change them.

It’s how we use JS to make fun interactive stuff happen

var button = document.querySelector("button");

button.onclick = function () {
button.textContent = "Just clicked";
};

Coding time 👨‍💻