Passing arguments into a vanilla JS function

This bookmark was published on .

I need to remember smart things like this, so I'm saving it for future me, who won't have an excuse not to have remembered.