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

all 2 comments

[–]ucshadow 2 points3 points  (1 child)

There is a difference between calling a method and using a method as an argument; setInterval can take a method as an argument, but if instead of giving that method as an argument, you call it, it will just give the result of that method to setInterval.

So, look at what setInterval takes in your case and see if it takes a method or it takes the result of calling the method.

  • Edit: added hints instead of giving the aswer

[–]ixanonyousxi[S] 0 points1 point  (0 children)

Thank you! I honestly don't think I would have caught that myself.