()
| 14 | }; |
| 15 | // Creating a function which will contain all the actions that will get executed when user want to close modal window. |
| 16 | const closeModal = function() { |
| 17 | modal.classList.add('hidden'); |
| 18 | overlay.classList.add('hidden'); |
| 19 | }; |
| 20 | |
| 21 | // Making show modal button responsive |
| 22 | btnOpenModal.addEventListener('click',openModal); |