diff --git a/incrementation.js b/incrementation.js new file mode 100644 index 0000000..44c3db2 --- /dev/null +++ b/incrementation.js @@ -0,0 +1,11 @@ +let incrementBtn = document.getElementById('incrementBtn'); +let count = document.getElementById('count'); + +let counter = 0; + +incrementBtn,addEventListener('click', () => { + counter++; + count.innerText = counter; + +}); + diff --git a/index.html b/index.html new file mode 100644 index 0000000..dc386fb --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + +
+ + + + +Count: 0
+ + +