diff --git a/index.js b/index.js index e36025b00..11c59f808 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,6 @@ function addingEventListener() { + const input = document.getElementById('button'); + input.addEventListener('click', function() { + alert('I was clicked!'); +}); }