The instanceof operator returns true if object is an instance of class. It returns true if true if class is present in the object's prototype chain. It returns false if object is not an instance of class, or if object is null.