0

Why is setInterval called "method"? I see it's called like a function — does not have an object and dot before it.

3rd Apr 2016, 1:51 PM
exetwezz
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).
25th Apr 2016, 10:00 PM
Schindlabua
Schindlabua - avatar
0
remember you can also put this method to variable ... var myInterval = setInterval()...
22nd Jul 2016, 10:28 AM
Matej Birosik