The typeof operator is not a function. You can surround the operand with parentheses so that the expression looks like a function call, but the brackets will just act as a grouping operator (the second only for the comma operator in the unknown hierarchy!). In fact, you can decorate the operand with all the punctuation methods without negating the operator.
typeof (2) //"number"
typeof(2) //"number"
typeof ("a", 3) //"number"
typeof (1 + 1) //"number"
source
share