Dr. Derek Austin 🥳
1 min readDec 16, 2019

--

Great catch Thomas Stoddard !!! And thanks so much for stopping by with your insightful comment!

I’ve updated the code snippet to clarify that in JavaScript, typeof an undeclared variable is undefined, and will NOT throw a ReferenceError:

Thanks again! I appreciate it! Cheers!

--

--

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.

No responses yet