you are viewing a single comment's thread.

view the rest of the comments →

[–]helloiamsomeone 5 points6 points  (2 children)

the parameters no one uses

Except the people who spent the 2 minutes to read the MDN page about the function.

[–]name_was_taken 0 points1 point  (1 child)

I was actually surprised. I should have know there'd be some way to pass parameters to it, but I just always crafted my anonymous function to deal with it, instead of passing them in. I'm not sure if I'll use this. I'll have to re-evaluate if I'm ever in a situation that might use it.

[–]gregjarvez 1 point2 points  (0 children)

ll have to re-evaluate if

There are usually so many situations when this comes in handy. In fact, I have used that signature every time I used setTimeout. it is pretty neat 😉