I have absolutely no idea what the debounce property does, if it even is a property, or how to use it.
I've looked in almost every page, blog, and even memorized a few. I still don't know how to use it at all. I know it prevents certain functions from repeating an excessive amount of times, but I just can't grasp anything else about it.

2 comments
On line one, you use
debounceand then you start usingd. However, you should note that you do not need to define the variable at the top of the script for this code to work.Thanks for pointing out that error of mine and yes, I know that you don't need to define it at the beginning. I'm just making an example.