Why typeof 1/0 is NaN?
javascript
Solution
That's because the `typeof` operator has more precedence than `/`. Your code is equivalent to:
(typeof 1) / 0
Which is `NaN`.
Issuing:
typeof (1 / 0)
Gives the expected result, `"number"`.
Problem
Chrome console on typing typeof 1/0 gives NaN But it is not true, because 1/0 is Infinity, which is not NaN. How is it possible?