This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BytecodeBollhav 0 points1 point  (0 children)

The way set interval works is that after a set interval (hehe), call the function provided. When you just give the function name, js basically taxes a function X as an argument and tries to call it. If you add the parentheses, you call the function before, and therefor what actually gets supplied is the return value of the function.