Define/Explain how to create custom events
Use the CustomEvent constructor to create a new custom event object, specifying the name of the event and any options for the event.
Trigger the event by calling the dispatchEvent method on the element that you want to trigger the event on, passing the custom event object as an argument.
Handle the event by adding an event listener to the element that you want to listen for the event on, using the addEventListener method. This method takes the event name and a callback function as arguments. The callback function will be run whenever the event is triggered, and you can use it to handle the event as needed.