typeof Operator

Contact Us or call 1-877-932-8228
typeof Operator

typeof Operator

The typeof operator is used to find out the data type of a variable. As we learned earlier in the course, we can have variables that hold String values, Numeric values, and more. Using the typeof operators lets us identify the type of data the variable references. The screenshot below (of BuiltInObjects/Demos/typeof.html) shows what the typeof operator returns for different data types Example output from the typeof operator.

Next