var d = 1
if (function f() {}) {
d += typeof f
}
console.log(d)
Output: 1Undefined
Why typeOf function is Undefined can someone explain??
I know we won't be using these typeof declarations in real time. But, I am trying to understand how Javascript handles function defintions...