window.setInterval
and window.setTimeout
have a [timeout]
argument which does not work
#339
Labels
window.setInterval
and window.setTimeout
have a [timeout]
argument which does not work
#339
The function declaration of both
window.setInterval
andwindow.setTimeout
look the same i.e.,And according to MDN, the JS declaration is
At first, I thought that
timeout
is thedelay
parameter but it wasn't. Settingtimeout
did not affect the delay at all.After that, I thought that maybe
timeout
is the time after which the interval closes/clears itself. That does not turn out to be the case either.So far, setting
timeout
seems to be NOT do anything and I could not find any JS equivalent feature either.So, that's why I have this question: What does the
[timeout]
argument do?The text was updated successfully, but these errors were encountered: