off-topic: setTimeout(function(){digitalWrite(LED1,0)},1000); #NO! setTimeout(digitalWrite,1000,LED1,0); #timersHaveArguments #learnJS
-
-
@mathias@webreflection there's actually a MAJOR diff there… the fact that the latter doesn't have a closure so any updated value isn't used -
@getify@mathias@WebReflection Also, only useful if you don't mind losing support for IE < 10 http://mdn.io/setTimeout#Browser_compatibility … - 14 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.