--

Thanks for the info Joshua Walsh !! I ran into that piece of into (about bind(), this, and console.log()) yesterday while teaching my Saturday bootcamp workshop. I asked the students to add a “refresh” button to the DOM, and location.reload() similarly needs the bind treatment to work directly from an event handler. Cheers and thanks for reading! 👍

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

Responses (1)