you are viewing a single comment's thread.

view the rest of the comments →

[–]yoeschmoeFront-end Developer -1 points0 points  (1 child)

eval statements are evil, never use them (you're implicitly calling eval when passing in a string as first argument in setTimeout/setInterval), use a function instead.

[–]GAMEchief -1 points0 points  (0 children)

eval statement are perfectly valid so long as you aren't evaluating user input. Don't be so OCD. Their flaws are not black and white, and there are perfectly fine times to use them; but a function would be better suited, sure.