The “typeof” operator is very useful at the moment for checking what kind or type of object we are dealing with. It returns a string containing the datatype of the object. The values returned are “number”, “string”, “boolean”, “undefined”, “function”, and “object”.