Explore Library
QuizIntermediate

Narrowing Loss in Closures

Understand why narrowing may not persist inside a nested function.

Given `let x: string | undefined`, why might `x` be treated as `string | undefined` again inside a callback declared after `if (x) { ... }`?