Skip to main content
Output PredictionTS TypeScript Easy+10 XP

Union Type Check

What is the type of x?

TypeScript
let x: string | number = "hello";
x = 42;
// typeof x at this point?

🔮 What is the output?