JavaScripts typeof operator

I have seen people use typeof as if it were a function typeof(1), while this works, it’s not because it’s a function. typeof is an operator. A unary operator like delete, meaning it only has one operand. You can call typeof with parenthesis

1
typeof(1) // 'number'

but what you are in fact doing, besides making typeof look like a function call, is simply ensuring the contents of the parentheses are evaluated before being operated on

1
2
3
typeof 1 // 'number'
typeof 1 + '1' // 'number1'
typeof (1 + '1') // 'string'