Mike Cronin
1 min readOct 9, 2019

--

I was on the fence about adding something about functions parameters giving you an extra spot to put info, so I’ll throw that in. If one person asks a question, that means there are a dozen more who were too afraid to ask. That function was copied from a React onSubmit handler, which always get’s the event object, but that’s not immediately obvious, so yea I’ll throw in the event. But that 2000 is going into set timeout as the second argument, which means it’s milliseconds. So argument variables can be looked up, but I can talk about it.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response