Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

typeof

The typeof operator returns the object type.

Syntaxtypeof object typeof ( object )

Examples

var say = "hello"; alert( typeof say ); /* string */ var amount = 12; alert( typeof amount ); /* number */ var opened = false; alert( typeof opened ); /* boolean */

JavaScript

Operators

deleteinstanceofnewthistypeofternaryvoid