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'); })