What is a union type, and why can't you call toUpperCase() on a string | number?
The answer
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…
toUpperCase() on a string | number?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.