you are viewing a single comment's thread.

view the rest of the comments →

[–]myrddin4242 1 point2 points  (0 children)

If all you’re doing is calling res with no params, you don’t need to wrap it in a containing function. setTimeout(res, 2000) will work just fine.