From 54a460253c1d229731fea93eb80812c1c014c97c Mon Sep 17 00:00:00 2001 From: Dom Siravo Date: Thu, 19 Nov 2020 20:43:05 +0000 Subject: [PATCH] Done. --- js/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/index.js b/js/index.js index 17452e23..18f18392 100644 --- a/js/index.js +++ b/js/index.js @@ -1,2 +1,7 @@ // using this file is optional // you can also load the code snippets in using your browser's console +const main = document.getElementById('main'); + +main.addEventListener('click', function(event) { + alert('I was clicked!'); +}); \ No newline at end of file