From 51c5b24871739299536787ba0fe33ddb026b0ff2 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 6 Aug 2023 16:27:10 +0300 Subject: [PATCH] addEventListenter --- snipplets/code/JavaScript/addEventListenter.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 snipplets/code/JavaScript/addEventListenter.js diff --git a/snipplets/code/JavaScript/addEventListenter.js b/snipplets/code/JavaScript/addEventListenter.js new file mode 100644 index 0000000..9dd3ffa --- /dev/null +++ b/snipplets/code/JavaScript/addEventListenter.js @@ -0,0 +1,3 @@ +const button = document.getElementById('button'); + +button.addEventListener("click", function() { console.log('click'); })