We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ecf228 commit 4794807Copy full SHA for 4794807
All Lessons/eventListener.js
@@ -0,0 +1,9 @@
1
+
2
3
+function formingClosure(){
4
+ let count = 0;
5
+ document.getElementById("clickMe").addEventListener("click", function xyz() {
6
+ console.log("Button Clicked : ", ++count);
7
+ });
8
+}
9
+formingClosure();
0 commit comments