Simple and clear! The code would come out a little easier to read using Medium’s code block ``` or pasting into a GitHub gist. The latter will give you JavaScript syntax highlighting if you give your file a name ending in .js — gist.github.com

🤓 The physical therapist who writes JavaScript 💪 Web Developer 😎 Mentor 🧠 DPT 😄 SEO Expert 😁 React 😆 Jamstack 💬 Ask me anything 👉 DoctorDerek.com 👈

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store