Hello everyone, such a problem has arisen, I am writing on JS recently, I already know a lot about what I knew, but the problem with the increase in code has appeared, I noticed that for example, if you update the internal page (via JS (load, html)), then -both all the functions vserovno turn out to be running and in the end I click on the button - the click is triggered and the function is executed as much as 3 times in some way.
The question is actually: Is it possible to somehow divide or clear the memory after performing the function? It seems there is a return and something else with the event, but if this is the very thing, then I do not know how to use it.