type

Returns the content type of the object.

MDN Reference