[@@hasInstance]() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/@@hasInstance)
    2. [ ` Function.prototype.apply() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply)
    3. [ ` Function.prototype.bind() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind)
    4. [ ` Function.prototype.call() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call)
    5. [ ` Function.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString)
  6. **Inheritance**
  7. **[ ` Object ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) **
  8. Properties 
    1. [ ` Object.prototype.constructor ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
    2. [ ` Object.prototype.__proto__ ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) Deprecated 
  9. Methods 
    1. [ ` Object.prototype.__defineGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) Deprecated 
    2. [ ` Object.prototype.__defineSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__) Deprecated 
    3. [ ` Object.prototype.__lookupGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) Deprecated 
    4. [ ` Object.prototype.__lookupSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__) Deprecated 
    5. [ ` Object.prototype.hasOwnProperty() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)
    6. [ ` Object.prototype.isPrototypeOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf)
    7. [ ` Object.prototype.propertyIsEnumerable() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
    8. [ ` Object.prototype.toLocaleString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString)
    9. [ ` Object.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString)
    10. [ ` Object.prototype.valueOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf)

##  In this article

  * Value 
  * Description 
  * Examples 
  * Specifications 
  * Browser compatibility 
  * See also 

#  Function: displayName

**Non-standard:** This feature is non-standard and is not on a standards
track. Do not use it on production sites facing the Web: it will not work for
every user. There may also be large incompatibilities between implementations
and the behavior may change in the future.

The optional **` displayName ` ** property of a [ ` Function ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Function) instance specifies
the display name of the function.

##  Value

The ` displayName ` property is not initially present on any function â it's
added by the code authors. For the purpose of display, it should be a string.

##  Description

The ` displayName ` property, if present, may be preferred by consoles and
profilers over the [ ` name ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) property to be
displayed as the name of a function.

Among browsers, only the Firefox console utilizes this property. React
devtools also use the [ ` displayName ` ](https://reactjs.org/docs/higher-
order-components.html#convention-wrap-the-display-name-for-easy-debugging)
property when displaying the component tree.

Firefox does some basic attempts to decode the ` displayName ` that's possibly
generated by the [ anonymous JavaScript functions naming convention
](https://johnjbarton.github.io/nonymous/index.html) algorithm. The following
patterns are detected:

  * If ` displayName ` ends with a sequence of alphanumeric characters, ` _ ` , and ` $ ` , the longest such suffix is displayed. 
  * If ` displayName ` ends with a sequence of ` [] ` -enclosed characters, that sequence is displayed without the square brackets