Events are things browser or user do it like click,scroll,press keyboard.
const button =document.querySelector('#submit)
//Click,Scroll,Resizing the browser
button.addEventListener('click', function(){
console.log('New Item added'); //when button with id #submit click it console.log
})