The Mozilla documentation has some examples written using window. before timer functions, and some without:
function delayedAlert() { timeoutID = window.setTimeout(slowAlert, 2000); }... setTimeout(myArray.myMethod, 1000);... window.setInterval = function (vCallback, nDelay...
I am writing my code without window. front without any problems. I want to know if there is a situation when it will be necessary.
javascript window settimeout setinterval
Question overflow
source share