var y = 1;
if (function f(){}) {
y += typeof f;
}
console.log(y);
The Output of this code is 1undefined. I get the reason that the condition in if statement is evaluated using eval at runtime, but I cannot understand why it is not outputting 1function.