Enums, union types, or as const objects: which would you use, and why?
The answer
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…
as const objects: which would you use, and why?Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…
New here? Ask where to start, what each guide covers, or how the interactive lessons work. Tuto answers and links you to the right page.
Your first 3 answers need no account. for free to keep asking.