var z = 1;
if (function f() {}) { z += typeof f; }
console.log(z);
my expection was 1function
I thought the typeof f return "function"
but when i run this is chrome browser i get the output as 1undefined. I am not clear how typeof f invoked the function call