# Event When the page loads, it is called an event. When the user clicks a button, that click too is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc. # function A function is a group of reusable code which can be called anywhere in your program.