QuizIntermediate
Control Flow Analysis Basics
Learn how an early return narrows a variable in the code that follows.
Given `x: string | undefined`, after `if (x === undefined) return;`, what type is `x` on the next line?
Learn how an early return narrows a variable in the code that follows.
Given `x: string | undefined`, after `if (x === undefined) return;`, what type is `x` on the next line?