I pasted the Closure code in VS Code and debugged it.
Watched the var counter, c1, c2, c3 in WATCH. Every time it accessed myFunction() checked the closure tab on left. This made it more easier to understand the concept of closure as it ran with your step by step explanation.
Thanks a lot.
A short guide on the correct usage of removeEventListener()
Lately, I was trying to remove an event listener previously added from an element and it came out to be a proper riddle! I spent a good half an hour in order to find…
Thank you for this, my friend.
I am definitely striving for more empathy, while at the same time maintaining clarity and strength in my thinking and writing.
Really appreciate your observation and words. Means a lot!