Predict the output of the following code snippet
function foo(input: boolean) {
let one = 1200;
if (input) {
let ans = one + 1;
}
return ans;
The correct answer is
Compilation error