- Get the Modal, the button of the Modal and the close button with getElementsByClassname and getElementById
- Add a click event listener using addEventListener, so when you click on the button, it will show the Modal.
- Create an openModal() function that changes the Modal display value to 'block'
- Add a click event listener for closing the Modal
- Create a closeModal() function that changes the Modal display value to 'none'
- Hide the Modal when clicking outside of the Modal window