question regarding events in this example

Hello guys I am new at learning js and I am struggling with events a little bit, for example here in this example:

const buttonContainer = document.querySelector(".button-container");

buttonContainer.addEventListener("click", function (event) // what is event here inside of the parenthesis {
alert(
You clicked on button ${event.target.innerText}
)
});
Was this page helpful?