+ 1
Js functions
Hey all, Why does js allow you to call a function again while it's still running whats its purpose? I'm trying to find a nice way to use ontouchstart on a function that only calls it once until its finished without using timers... I have done it before but the code seems over complicated for somthing simple 🤔 Thank you
1 Antwort
+ 2
Here is a solution from David Walsh (https://davidwalsh.name/javascript-once)
https://code.sololearn.com/WgkUX9C8cev4/?ref=app