0
Why is setInterval called "method"? I see it's called like a function — does not have an object and dot before it.
2 Antworten
+ 4
`setInterval` has an object, it's called `window`, and in fact `window.setInterval` will do the same thing (I prefer writing it like this, too).
0
remember you can also put this method to variable ... var myInterval = setInterval()...