The production _UnaryExpression_ : `typeof` _UnaryExpression_ is evaluated as follows: 1. Let _val_ be the result of evaluating _UnaryExpression_. 2. If [Type][2 ...
typeof is an operator that is used to identify the type of any object in javascript. It returns a value that is string. So you can compare any string value from returned value of typeof. // Examples ...