--

Haha Ray 🤣 Good one! The difference is revealed when you hover your mouse in VS Code and either know what the underlying raw data type is (union) or have to Ctrl+click (CMD+click) to look it up (enum).

--

--

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