Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
TypeScript
hard
TypeScript
union and literal types
Single-choice MCQ
1 views
What is the inferred return type of f?
function f(x: boolean) { return x ? 1 : "a"; }