document.querySelector("button.w").addEventListener("click", function () {
this.style.color = "white";
});
// In HTML event handlers, this refers to the HTML element that received the event:
// when clicked color of the element would change to white,
// document.querySelector("button.w") indentifies the element.