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