From c02ec0c5451dfcacbcb40e7cddb76bde67f3046f Mon Sep 17 00:00:00 2001 From: jonah-kayiwa <152336281+jonah-kayiwa@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:29:10 +0300 Subject: [PATCH] completed --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index e36025b00..5ce5c732c 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,9 @@ function addingEventListener() { + const input = document.getElementById('input') + + function clickAlert(){ + alert('I was clicked'); + } + input.addEventListener('click',clickAlert); } +addingEventListener()