Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
TypeScript
easy
TypeScript
union and literal types
Single-choice MCQ
Which is the inferred type for x?
function f(x?: string) { /* x has type string | undefined */ }