querySelector('.button')

      buttonElement.addEventListener('click', function (event) {
        targetElement.textContent = event.target.outerHTML
        currentTargetElement.textContent = event.currentTarget.outerHTML
      })
    })()
  </script>
</body>
</html>
