From reading to writing
Finding elements is half the fun. Now let's change them: new text, new styles, new classes. This is how scores update, buttons light up and messages appear.
Changing text and style
const score = document.querySelector("#score");
score.textContent = "Score: 10";
const title = document.querySelector("h1");
title.style.color = "crimson";
title.style.fontSize = "40px";